sf4, setting new path for all config yaml files, and replace 'controller' path syntax in routes definitions

This commit is contained in:
Tchama 2020-08-03 18:05:31 +02:00
parent 5ad3c659ee
commit 98f0ac545e
8 changed files with 11 additions and 11 deletions

View File

@ -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'
) )
) )
)); ));

View File

@ -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:

View File

@ -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' ]