setting new path for config files

This commit is contained in:
Tchama 2020-07-31 14:42:37 +02:00
parent 9c1169644f
commit e517c72194
5 changed files with 13 additions and 13 deletions

View File

@ -100,7 +100,7 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
array() array()
); );
$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.yml');
$loader->load('services/logger.yml'); $loader->load('services/logger.yml');
$loader->load('services/repositories.yml'); $loader->load('services/repositories.yml');
@ -180,7 +180,7 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
$container->prependExtensionConfig('chill_main', array( $container->prependExtensionConfig('chill_main', array(
'routing' => array( 'routing' => array(
'resources' => array( 'resources' => array(
'@ChillMainBundle/Resources/config/routing.yml' '@ChillMainBundle/config/routing.yml'
) )
) )

View File

@ -1,5 +1,5 @@
hello_bundle: hello_bundle:
resource: "@ChillMainBundle/Resources/config/routing.yml" resource: "@ChillMainBundle/config/routing.yml"
chill_main_dummy_0: chill_main_dummy_0:
path: /dummy path: /dummy

View File

@ -1,33 +1,33 @@
chill_main_admin_permissionsgroup: chill_main_admin_permissionsgroup:
resource: "@ChillMainBundle/Resources/config/routing/permissionsgroup.yml" resource: "@ChillMainBundle/config/routing/permissionsgroup.yml"
prefix: "{_locale}/admin/permissionsgroup" prefix: "{_locale}/admin/permissionsgroup"
chill_main_admin_user: chill_main_admin_user:
resource: "@ChillMainBundle/Resources/config/routing/user.yml" resource: "@ChillMainBundle/config/routing/user.yml"
prefix: "{_locale}/admin/user" prefix: "{_locale}/admin/user"
chill_main_admin_scope: chill_main_admin_scope:
resource: "@ChillMainBundle/Resources/config/routing/scope.yml" resource: "@ChillMainBundle/config/routing/scope.yml"
prefix: "{_locale}/admin/scope" prefix: "{_locale}/admin/scope"
chill_main_admin: chill_main_admin:
resource: "@ChillMainBundle/Resources/config/routing/center.yml" resource: "@ChillMainBundle/config/routing/center.yml"
prefix: "{_locale}/admin/center" prefix: "{_locale}/admin/center"
chill_main_exports: chill_main_exports:
resource: "@ChillMainBundle/Resources/config/routing/exports.yml" resource: "@ChillMainBundle/config/routing/exports.yml"
prefix: "{_locale}/exports" prefix: "{_locale}/exports"
chill_postal_code: chill_postal_code:
resource: "@ChillMainBundle/Resources/config/routing/postal-code.yml" resource: "@ChillMainBundle/config/routing/postal-code.yml"
prefix: "{_locale}/postal-code" prefix: "{_locale}/postal-code"
chill_password: chill_password:
resource: "@ChillMainBundle/Resources/config/routing/password.yml" resource: "@ChillMainBundle/config/routing/password.yml"
prefix: "{_locale}/password" prefix: "{_locale}/password"
chill_password_recover: chill_password_recover:
resource: "@ChillMainBundle/Resources/config/routing/password_recover.yml" resource: "@ChillMainBundle/config/routing/password_recover.yml"
prefix: "public/{_locale}/password" prefix: "public/{_locale}/password"
root: root:

View File

@ -2,7 +2,7 @@ services:
Chill\MainBundle\Controller\: Chill\MainBundle\Controller\:
autowire: true autowire: true
resource: '../../../Controller' resource: '../../Controller'
tags: ['controller.service_arguments'] tags: ['controller.service_arguments']
Chill\MainBundle\Controller\PasswordController: Chill\MainBundle\Controller\PasswordController:

View File

@ -1,4 +1,4 @@
services: services:
Chill\MainBundle\DataFixtures\ORM\: Chill\MainBundle\DataFixtures\ORM\:
resource: ../../../DataFixtures/ORM resource: ../../DataFixtures/ORM
tags: [ 'doctrine.fixture.orm' ] tags: [ 'doctrine.fixture.orm' ]