Kernel/BaseKernel.php
protected function configureContainer(
        ContainerBuilder $c,
        LoaderInterface $loader
    ) {
        $yamlContent = Yaml::dump($this->configuration);
        $filePath = sys_get_temp_dir().'/base-test-'.rand(1, 9999999).'.yml';
        file_put_contents($filePath, $yamlContent);
        $loader->load($filePath);
        unlink($filePath);
    }
protected function configureContainer(
        ContainerBuilder $c,
        LoaderInterface $loader
    ) {
        $yamlContent = Yaml::dump($this->configuration);
        $filePath = sys_get_temp_dir().'/base-test-'.rand(1, 9999999).'.yml';
        file_put_contents($filePath, $yamlContent);
        $loader->load($filePath);
        unlink($filePath);
    }
protected function configureContainer ( ContainerBuilder $ c , LoaderInterface $ loader ) { $ yamlContent = Yaml :: dump ( $ this -> configuration ) ; $ filePath = sys_get_temp_dir ( ) . '/base-test-' . rand ( 1 , 9999999 ) . '.yml' ; file_put_contents ( $ filePath , $ yamlContent ) ; $ loader -> load ( $ filePath ) ; unlink ( $ filePath ) ; }
Configures the container.

You can register extensions:

$c->loadFromExtension('framework', array(
'secret' => '%secret%'
));

Or services:

$c->register('halloween', 'FooBundle\HalloweenProvider');

Or parameters:

$c->setParameter('halloween', 'lot of fun');

@param ContainerBuilder $c
@param LoaderInterface  $loader
Configures the container .