clean code with php-cs-fixer
This commit is contained in:
@@ -1,25 +1,18 @@
|
||||
<?php
|
||||
if(is_file(__DIR__ . '/config_db.php')){
|
||||
if (is_file(__DIR__ . '/config_db.php')) {
|
||||
require __DIR__ . '/config_db.php';
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Reference;
|
||||
|
||||
|
||||
$container = new ContainerBuilder();
|
||||
|
||||
|
||||
$container->register('database','Thelia\\Database\\Connection');
|
||||
|
||||
$container->register('http_kernel','Symfony\\Component\\HttpKernel\\HttpKernel');
|
||||
|
||||
$container->register('session','Symfony\\Component\\HttpFoundation\\Session\\Session');
|
||||
|
||||
|
||||
return $container;
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user