Skip to content

Commit

Permalink
Fixed deprecated controller syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwojs committed Dec 29, 2024
1 parent 91fe4fa commit d62a64c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions src/bundle/Resources/config/routing.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
ibexa.content.create_no_draft:
path: /content/create/nodraft/{contentTypeIdentifier}/{language}/{parentLocationId}
defaults:
_controller: ibexa_content_edit:createWithoutDraftAction
controller: ibexa_content_edit:createWithoutDraftAction
options:
expose: true
# @todo rename language to languageCode in 3.0

ibexa.content.draft.edit:
path: /content/edit/draft/{contentId}/{versionNo}/{language}/{locationId}
controller: ibexa_content_edit::editVersionDraftAction
defaults:
_controller: ibexa_content_edit:editVersionDraftAction
language: ~ # @todo rename to languageCode in 3.0
locationId: ~
options:
expose: true

ibexa.content.draft.create:
path: /content/create/draft/{contentId}/{fromVersionNo}/{fromLanguage}
controller: ibexa_content_edit::createContentDraftAction
defaults:
_controller: ibexa_content_edit:createContentDraftAction
contentId: ~
fromVersionNo: ~
fromLanguage: ~
Expand All @@ -32,8 +31,7 @@ ibexa.user.create:

ibexa.user.update:
path: /user/update/{contentId}/{versionNo}/{language}
defaults:
_controller: Ibexa\Bundle\ContentForms\Controller\UserController:editAction
controller: Ibexa\Bundle\ContentForms\Controller\UserController::editAction
options:
expose: true

2 changes: 1 addition & 1 deletion src/lib/Content/View/Builder/ContentEditViewBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ContentEditViewBuilder extends AbstractContentViewBuilder implements ViewB
{
public function matches($argument)
{
return 'ibexa_content_edit:editVersionDraftAction' === $argument;
return 'ibexa_content_edit::editVersionDraftAction' === $argument;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Content/View/Filter/ContentEditViewFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static function getSubscribedEvents(): array
*/
public function handleContentEditForm(FilterViewBuilderParametersEvent $event)
{
if ('ibexa_content_edit:editVersionDraftAction' !== $event->getParameters()->get('_controller')) {
if ('ibexa_content_edit::editVersionDraftAction' !== $event->getParameters()->get('_controller')) {
return;
}

Expand Down

0 comments on commit d62a64c

Please sign in to comment.