mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 22:46:13 +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();
|
$configuration = new Configuration();
|
||||||
$config = $this->processConfiguration($configuration, $configs);
|
$config = $this->processConfiguration($configuration, $configs);
|
||||||
|
|
||||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
|
||||||
$loader->load('services.yml');
|
$loader->load('services.yaml');
|
||||||
$loader->load('services/media.yml');
|
$loader->load('services/media.yaml');
|
||||||
$loader->load('services/controller.yml');
|
$loader->load('services/controller.yaml');
|
||||||
$loader->load('services/menu.yml');
|
$loader->load('services/menu.yaml');
|
||||||
$loader->load('services/fixtures.yml');
|
$loader->load('services/fixtures.yaml');
|
||||||
$loader->load('services/form.yml');
|
$loader->load('services/form.yaml');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function prepend(ContainerBuilder $container)
|
public function prepend(ContainerBuilder $container)
|
||||||
@ -46,8 +46,8 @@ class ChillDocStoreExtension extends Extension implements PrependExtensionInterf
|
|||||||
$container->prependExtensionConfig('chill_main', array(
|
$container->prependExtensionConfig('chill_main', array(
|
||||||
'routing' => array(
|
'routing' => array(
|
||||||
'resources' => array(
|
'resources' => array(
|
||||||
'@ChillDocStoreBundle/Resources/config/routing.yml',
|
'@ChillDocStoreBundle/config/routes.yaml',
|
||||||
'@ChampsLibresAsyncUploaderBundle/Resources/config/routing.yml'
|
'@ChampsLibresAsyncUploaderBundle/config/routes.yaml'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
Chill\DocStoreBundle\Controller\:
|
Chill\DocStoreBundle\Controller\:
|
||||||
resource: '../../../Controller'
|
resource: '../../Controller'
|
||||||
tags: ['controller.service_arguments']
|
tags: ['controller.service_arguments']
|
||||||
|
|
||||||
Chill\DocStoreBundle\Controller\DocumentPersonController:
|
Chill\DocStoreBundle\Controller\DocumentPersonController:
|
@ -1,4 +1,4 @@
|
|||||||
services:
|
services:
|
||||||
Chill\DocStoreBundle\DataFixtures\ORM\:
|
Chill\DocStoreBundle\DataFixtures\ORM\:
|
||||||
resource: ../../../DataFixtures/ORM
|
resource: ../../DataFixtures/ORM
|
||||||
tags: [ 'doctrine.fixture.orm' ]
|
tags: [ 'doctrine.fixture.orm' ]
|
Loading…
x
Reference in New Issue
Block a user