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-04 12:20:16 +02:00
parent f94fb0efc1
commit d4948b176f
17 changed files with 54 additions and 54 deletions

View File

@ -24,16 +24,16 @@ 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, 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/authorization.yml'); $loader->load('services/authorization.yaml');
$loader->load('services/controller.yml'); $loader->load('services/controller.yaml');
$loader->load('services/fixtures.yml'); $loader->load('services/fixtures.yaml');
$loader->load('services/forms.yml'); $loader->load('services/forms.yaml');
$loader->load('services/menu.yml'); $loader->load('services/menu.yaml');
$loader->load('services/repositories.yml'); $loader->load('services/repositories.yaml');
$loader->load('services/search.yml'); $loader->load('services/search.yaml');
$loader->load('services/timeline.yml'); $loader->load('services/timeline.yaml');
} }
/* (non-PHPdoc) /* (non-PHPdoc)
@ -56,7 +56,7 @@ class ChillEventExtension extends Extension implements PrependExtensionInterface
$container->prependExtensionConfig('chill_main', array( $container->prependExtensionConfig('chill_main', array(
'routing' => array( 'routing' => array(
'resources' => array( 'resources' => array(
'@ChillEventBundle/Resources/config/routing.yml' '@ChillEventBundle/config/routes.yaml'
) )
) )
)); ));

View File

@ -1,9 +1,9 @@
chill_event_event: chill_event_event:
resource: "@ChillEventBundle/Resources/config/routing/event.yml" resource: "@ChillEventBundle/config/routes/event.yaml"
prefix: /{_locale}/event/event prefix: /{_locale}/event/event
chill_event_participation: chill_event_participation:
resource: "@ChillEventBundle/Resources/config/routing/participation.yml" resource: "@ChillEventBundle/config/routes/participation.yaml"
prefix: /{_locale}/event/participation prefix: /{_locale}/event/participation
@ -11,7 +11,7 @@ chill_event_participation:
chill_event_admin: chill_event_admin:
path: /{_locale}/admin/event path: /{_locale}/admin/event
defaults: { _controller: "ChillEventBundle:Admin:index" } controller: Chill\EventBundle\Controller\AdminController::indexAction
options: options:
menus: menus:
admin_section: admin_section:
@ -20,14 +20,14 @@ chill_event_admin:
icons: ['calendar'] icons: ['calendar']
chill_event_admin_status: chill_event_admin_status:
resource: "@ChillEventBundle/Resources/config/routing/status.yml" resource: "@ChillEventBundle/config/routes/status.yaml"
prefix: /{_locale}/admin/event/status prefix: /{_locale}/admin/event/status
chill_event_admin_role: chill_event_admin_role:
resource: "@ChillEventBundle/Resources/config/routing/role.yml" resource: "@ChillEventBundle/config/routes/role.yaml"
prefix: /{_locale}/admin/event/role prefix: /{_locale}/admin/event/role
chill_event_admin_event_type: chill_event_admin_event_type:
resource: "@ChillEventBundle/Resources/config/routing/eventtype.yml" resource: "@ChillEventBundle/config/routes/eventtype.yaml"
prefix: /{_locale}/admin/event/event_type prefix: /{_locale}/admin/event/event_type

View File

@ -1,6 +1,6 @@
chill_event_list_most_recent: chill_event_list_most_recent:
path: most_recent path: most_recent
defaults: { _controller: "ChillEventBundle:Event:mostRecentIndex" } controller: Chill\EventBundle\Controller\EventController::mostRecentIndexAction
options: options:
menus: menus:
section: section:
@ -10,11 +10,11 @@ chill_event_list_most_recent:
chill_event__event_show: chill_event__event_show:
path: /{event_id}/show path: /{event_id}/show
defaults: { _controller: "ChillEventBundle:Event:show" } controller: Chill\EventBundle\Controller\EventController::showAction
chill_event__event_new_pickcenter: chill_event__event_new_pickcenter:
path: /new/pick-center path: /new/pick-center
defaults: { _controller: "ChillEventBundle:Event:newPickCenter" } controller: Chill\EventBundle\Controller\EventController::newPickCenterAction
options: options:
menus: menus:
section: section:
@ -24,26 +24,26 @@ chill_event__event_new_pickcenter:
chill_event__event_new: chill_event__event_new:
path: /new path: /new
defaults: { _controller: "ChillEventBundle:Event:new" } controller: Chill\EventBundle\Controller\EventController::newAction
methods: [ GET, POST ] methods: [ GET, POST ]
chill_event__event_edit: chill_event__event_edit:
path: /{event_id}/edit path: /{event_id}/edit
defaults: { _controller: "ChillEventBundle:Event:edit" } controller: Chill\EventBundle\Controller\EventController::editAction
chill_event__event_update: chill_event__event_update:
path: /{event_id}/update path: /{event_id}/update
defaults: { _controller: "ChillEventBundle:Event:update" } controller: Chill\EventBundle\Controller\EventController::updateAction
methods: [POST, PUT] methods: [POST, PUT]
chill_event__list_by_person: chill_event__list_by_person:
path: /{person_id}/list path: /{person_id}/list
defaults: { _controller: "ChillEventBundle:Event:listByPerson" } controller: Chill\EventBundle\Controller\EventController::listByPersonAction
methods: [ GET ] methods: [ GET ]
chill_event__event_delete: chill_event__event_delete:
path: /{event_id}/delete path: /{event_id}/delete
requirements: requirements:
event_id: \d+ event_id: \d+
defaults: { _controller: "ChillEventBundle:Event:delete" } controller: Chill\EventBundle\Controller\EventController::deleteAction
methods: [ GET, DELETE ] methods: [ GET, DELETE ]

View File

@ -1,6 +1,6 @@
chill_eventtype_admin: chill_eventtype_admin:
path: / path: /
defaults: { _controller: "ChillEventBundle:EventType:index" } controller: Chill\EventBundle\Controller\EventTypeController::indexAction
options: options:
menus: menus:
admin_events: admin_events:
@ -9,27 +9,27 @@ chill_eventtype_admin:
chill_eventtype_admin_show: chill_eventtype_admin_show:
path: /{id}/show path: /{id}/show
defaults: { _controller: "ChillEventBundle:EventType:show" } controller: Chill\EventBundle\Controller\EventTypeController::showAction
chill_eventtype_admin_new: chill_eventtype_admin_new:
path: /new path: /new
defaults: { _controller: "ChillEventBundle:EventType:new" } controller: Chill\EventBundle\Controller\EventTypeController::newAction
chill_eventtype_admin_create: chill_eventtype_admin_create:
path: /create path: /create
defaults: { _controller: "ChillEventBundle:EventType:create" } controller: Chill\EventBundle\Controller\EventTypeController::createAction
methods: POST methods: POST
chill_eventtype_admin_edit: chill_eventtype_admin_edit:
path: /{id}/edit path: /{id}/edit
defaults: { _controller: "ChillEventBundle:EventType:edit" } controller: Chill\EventBundle\Controller\EventTypeController::editAction
chill_eventtype_admin_update: chill_eventtype_admin_update:
path: /{id}/update path: /{id}/update
defaults: { _controller: "ChillEventBundle:EventType:update" } controller: Chill\EventBundle\Controller\EventTypeController::updateAction
methods: [POST, PUT] methods: [POST, PUT]
chill_eventtype_admin_delete: chill_eventtype_admin_delete:
path: /{id}/delete path: /{id}/delete
defaults: { _controller: "ChillEventBundle:EventType:delete" } controller: Chill\EventBundle\Controller\EventTypeController::deleteAction
methods: [POST, DELETE] methods: [POST, DELETE]

View File

@ -1,33 +1,33 @@
chill_event_participation_new: chill_event_participation_new:
path: /new path: /new
defaults: { _controller: ChillEventBundle:Participation:new } controller: Chill\EventBundle\Controller\ParticipationController::newAction
chill_event_participation_create: chill_event_participation_create:
path: /create path: /create
defaults: { _controller: ChillEventBundle:Participation:create } controller: Chill\EventBundle\Controller\ParticipationController::createAction
chill_event_participation_edit: chill_event_participation_edit:
path: /{participation_id}/edit path: /{participation_id}/edit
defaults: { _controller: ChillEventBundle:Participation:edit } controller: Chill\EventBundle\Controller\ParticipationController::editAction
chill_event_participation_update: chill_event_participation_update:
path: /{participation_id}/update path: /{participation_id}/update
defaults: { _controller: ChillEventBundle:Participation:update } controller: Chill\EventBundle\Controller\ParticipationController::updateAction
methods: [POST] methods: [POST]
chill_event_participation_edit_multiple: chill_event_participation_edit_multiple:
path: /{event_id}/edit_multiple path: /{event_id}/edit_multiple
defaults: { _controller: ChillEventBundle:Participation:editMultiple } controller: Chill\EventBundle\Controller\ParticipationController::editMultipleAction
chill_event_participation_update_multiple: chill_event_participation_update_multiple:
path: /{event_id}/update_multiple path: /{event_id}/update_multiple
defaults: { _controller: ChillEventBundle:Participation:updateMultiple } controller: Chill\EventBundle\Controller\ParticipationController::updateMultipleAction
methods: [POST] methods: [POST]
chill_event_participation_delete: chill_event_participation_delete:
path: /{participation_id}/delete path: /{participation_id}/delete
requirements: requirements:
participation_id: \d+ participation_id: \d+
defaults: { _controller: ChillEventBundle:Participation:delete } controller: Chill\EventBundle\Controller\ParticipationController::deleteAction
methods: [ GET, DELETE ] methods: [ GET, DELETE ]

View File

@ -1,6 +1,6 @@
chill_event_admin_role: chill_event_admin_role:
path: / path: /
defaults: { _controller: "ChillEventBundle:Role:index" } controller: Chill\EventBundle\Controller\RoleController::indexAction
options: options:
menus: menus:
admin_events: admin_events:
@ -9,27 +9,27 @@ chill_event_admin_role:
chill_event_admin_role_show: chill_event_admin_role_show:
path: /{id}/show path: /{id}/show
defaults: { _controller: "ChillEventBundle:Role:show" } controller: Chill\EventBundle\Controller\RoleController::showAction
chill_event_admin_role_new: chill_event_admin_role_new:
path: /new path: /new
defaults: { _controller: "ChillEventBundle:Role:new" } controller: Chill\EventBundle\Controller\RoleController::newAction
chill_event_admin_role_create: chill_event_admin_role_create:
path: /create path: /create
defaults: { _controller: "ChillEventBundle:Role:create" } controller: Chill\EventBundle\Controller\RoleController::createAction
methods: POST methods: POST
chill_event_admin_role_edit: chill_event_admin_role_edit:
path: /{id}/edit path: /{id}/edit
defaults: { _controller: "ChillEventBundle:Role:edit" } controller: Chill\EventBundle\Controller\RoleController::editAction
chill_event_admin_role_update: chill_event_admin_role_update:
path: /{id}/update path: /{id}/update
defaults: { _controller: "ChillEventBundle:Role:update" } controller: Chill\EventBundle\Controller\RoleController::updateAction
methods: [POST, PUT] methods: [POST, PUT]
chill_event_admin_role_delete: chill_event_admin_role_delete:
path: /{id}/delete path: /{id}/delete
defaults: { _controller: "ChillEventBundle:Role:delete" } controller: Chill\EventBundle\Controller\RoleController::deleteAction
methods: [POST, DELETE] methods: [POST, DELETE]

View File

@ -1,6 +1,6 @@
chill_event_admin_status: chill_event_admin_status:
path: / path: /
defaults: { _controller: "ChillEventBundle:Status:index" } controller: Chill\EventBundle\Controller\StatusController::indexAction
options: options:
menus: menus:
admin_events: admin_events:
@ -9,27 +9,27 @@ chill_event_admin_status:
chill_event_admin_status_show: chill_event_admin_status_show:
path: /{id}/show path: /{id}/show
defaults: { _controller: "ChillEventBundle:Status:show" } controller: Chill\EventBundle\Controller\StatusController::showAction
chill_event_admin_status_new: chill_event_admin_status_new:
path: /new path: /new
defaults: { _controller: "ChillEventBundle:Status:new" } controller: Chill\EventBundle\Controller\StatusController::newAction
chill_event_admin_status_create: chill_event_admin_status_create:
path: /create path: /create
defaults: { _controller: "ChillEventBundle:Status:create" } controller: Chill\EventBundle\Controller\StatusController::createAction
methods: POST methods: POST
chill_event_admin_status_edit: chill_event_admin_status_edit:
path: /{id}/edit path: /{id}/edit
defaults: { _controller: "ChillEventBundle:Status:edit" } controller: Chill\EventBundle\Controller\StatusController::editAction
chill_event_admin_status_update: chill_event_admin_status_update:
path: /{id}/update path: /{id}/update
defaults: { _controller: "ChillEventBundle:Status:update" } controller: Chill\EventBundle\Controller\StatusController::updateAction
methods: [POST, PUT] methods: [POST, PUT]
chill_event_admin_status_delete: chill_event_admin_status_delete:
path: /{id}/delete path: /{id}/delete
defaults: { _controller: "ChillEventBundle:Status:delete" } controller: Chill\EventBundle\Controller\StatusController::deleteAction
methods: [POST, DELETE] methods: [POST, DELETE]

View File

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