mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 06:26:15 +00:00
sf4, setting new path for all config yaml files, and replace 'controller' path syntax in routes definitions
This commit is contained in:
parent
5ad3c659ee
commit
98f0ac545e
@ -24,13 +24,13 @@ class ChillDocStoreExtension extends Extension implements PrependExtensionInterf
|
||||
$configuration = new Configuration();
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.yml');
|
||||
$loader->load('services/media.yml');
|
||||
$loader->load('services/controller.yml');
|
||||
$loader->load('services/menu.yml');
|
||||
$loader->load('services/fixtures.yml');
|
||||
$loader->load('services/form.yml');
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
|
||||
$loader->load('services.yaml');
|
||||
$loader->load('services/media.yaml');
|
||||
$loader->load('services/controller.yaml');
|
||||
$loader->load('services/menu.yaml');
|
||||
$loader->load('services/fixtures.yaml');
|
||||
$loader->load('services/form.yaml');
|
||||
}
|
||||
|
||||
public function prepend(ContainerBuilder $container)
|
||||
@ -46,8 +46,8 @@ class ChillDocStoreExtension extends Extension implements PrependExtensionInterf
|
||||
$container->prependExtensionConfig('chill_main', array(
|
||||
'routing' => array(
|
||||
'resources' => array(
|
||||
'@ChillDocStoreBundle/Resources/config/routing.yml',
|
||||
'@ChampsLibresAsyncUploaderBundle/Resources/config/routing.yml'
|
||||
'@ChillDocStoreBundle/config/routes.yaml',
|
||||
'@ChampsLibresAsyncUploaderBundle/config/routes.yaml'
|
||||
)
|
||||
)
|
||||
));
|
||||
|
@ -1,6 +1,6 @@
|
||||
services:
|
||||
Chill\DocStoreBundle\Controller\:
|
||||
resource: '../../../Controller'
|
||||
resource: '../../Controller'
|
||||
tags: ['controller.service_arguments']
|
||||
|
||||
Chill\DocStoreBundle\Controller\DocumentPersonController:
|
@ -1,4 +1,4 @@
|
||||
services:
|
||||
Chill\DocStoreBundle\DataFixtures\ORM\:
|
||||
resource: ../../../DataFixtures/ORM
|
||||
resource: ../../DataFixtures/ORM
|
||||
tags: [ 'doctrine.fixture.orm' ]
|
Loading…
x
Reference in New Issue
Block a user