mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
fix sf4 deprecated: exclude entities from autowired services
This commit is contained in:
parent
88fc2deb68
commit
da682c22bc
@ -24,16 +24,8 @@ class ChillEventExtension extends Extension implements PrependExtensionInterface
|
|||||||
$configuration = new Configuration();
|
$configuration = new Configuration();
|
||||||
$config = $this->processConfiguration($configuration, $configs);
|
$config = $this->processConfiguration($configuration, $configs);
|
||||||
|
|
||||||
$loader = new Loader\YamlFileLoader($container,
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||||
new FileLocator(__DIR__.'/../Resources/config/services'));
|
$loader->load('services.yml');
|
||||||
$loader->load('repositories.yml');
|
|
||||||
$loader->load('search.yml');
|
|
||||||
$loader->load('authorization.yml');
|
|
||||||
$loader->load('forms.yml');
|
|
||||||
$loader->load('fixtures.yml');
|
|
||||||
$loader->load('menu.yml');
|
|
||||||
$loader->load('controller.yml');
|
|
||||||
$loader->load('timeline.yml');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-PHPdoc)
|
/* (non-PHPdoc)
|
||||||
|
14
Resources/config/services.yml
Normal file
14
Resources/config/services.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
services:
|
||||||
|
Chill\EventBundle\:
|
||||||
|
resource: '../..'
|
||||||
|
exclude: '../../{Entity,Resources/migrations,Resources/test}'
|
||||||
|
|
||||||
|
imports:
|
||||||
|
- { resource: './services/authorization.yml' }
|
||||||
|
- { resource: './services/controller.yml' }
|
||||||
|
- { resource: './services/fixtures.yml' }
|
||||||
|
- { resource: './services/forms.yml' }
|
||||||
|
- { resource: './services/menu.yml' }
|
||||||
|
- { resource: './services/repositories.yml' }
|
||||||
|
- { resource: './services/search.yml' }
|
||||||
|
- { resource: './services/timeline.yml' }
|
Loading…
x
Reference in New Issue
Block a user