Some checks failed
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit
32 lines
1004 B
PHP
32 lines
1004 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use App\DependencyInjection\PdoExtension;
|
|
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
|
|
use Symfony\Component\Config\Loader\LoaderInterface;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
|
|
|
|
class Kernel extends BaseKernel
|
|
{
|
|
use MicroKernelTrait {
|
|
registerContainerConfiguration as microKernelConfigureContainer;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function registerContainerConfiguration(LoaderInterface $loader)
|
|
{
|
|
$this->microKernelConfigureContainer($loader);
|
|
|
|
$loader->load(function (ContainerBuilder $container) use ($loader) {
|
|
$envLanguage = \getenv('APP_LOCALES');
|
|
$container->setParameter('app.supported_locales', explode(',', $envLanguage));
|
|
$container->registerExtension(new PdoExtension());
|
|
$loader->load($this->getConfigDir().'/pdo_configuration/*.{yml,yaml}', 'glob');
|
|
});
|
|
}
|
|
}
|