mercredi 12 novembre 2014

Difference between DependencyInjection and import in config file


Vote count:

0




I cant understand what difference between imoprt services in config file, or create DependencyInjection directory:


config.yml:



imports:
- { resource: @VputiUserBundle/Resources/config/services.xml }


DependencyInjection:



public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);

$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');
}


asked 1 min ago







Difference between DependencyInjection and import in config file

Aucun commentaire:

Enregistrer un commentaire