Sulu\Bundle\TestBundle\Kernel\SuluTestKernel::registerContainerConfiguration PHP Method

registerContainerConfiguration() public method

public registerContainerConfiguration ( Symfony\Component\Config\Loader\LoaderInterface $loader )
$loader Symfony\Component\Config\Loader\LoaderInterface
    public function registerContainerConfiguration(LoaderInterface $loader)
    {
        $loader->load(SuluTestBundle::getConfigDir() . '/config.php');
        // @see https://github.com/symfony/symfony/issues/7555
        $envParameters = $this->getEnvParameters();
        $loader->load(function ($container) use($envParameters) {
            $container->getParameterBag()->add($envParameters);
        });
    }

Usage Example

コード例 #1
0
ファイル: AppKernel.php プロジェクト: ollietb/sulu
 public function registerContainerConfiguration(LoaderInterface $loader)
 {
     parent::registerContainerConfiguration($loader);
     if (class_exists('Sulu\\Bundle\\SearchBundle\\SuluSearchBundle')) {
         $loader->load(__DIR__ . '/config/search.yml');
     }
 }
All Usage Examples Of Sulu\Bundle\TestBundle\Kernel\SuluTestKernel::registerContainerConfiguration