AppKernel::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(__DIR__ . '/config/config.yml');
    }

Usage Example

 /**
  * Load the config.yml from the current directory.
  */
 public function registerContainerConfiguration(LoaderInterface $loader)
 {
     // Load the default file.
     parent::registerContainerConfiguration($loader);
     // Load the file with MySQL configuration
     $loader->load(__DIR__ . '/config.yml');
 }
All Usage Examples Of AppKernel::registerContainerConfiguration