Skip to content

Commit

Permalink
Even more fixing for deprecated controller route syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Jan 28, 2025
1 parent 798d738 commit 49c6f0e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/bundle/Resources/config/routing.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ibexa.content.create_no_draft:
path: /content/create/nodraft/{contentTypeIdentifier}/{language}/{parentLocationId}
controller: ibexa_content_edit:createWithoutDraftAction
controller: ibexa_content_edit::createWithoutDraftAction
options:
expose: true
# @todo rename language to languageCode in 3.0
Expand All @@ -26,8 +26,7 @@ ibexa.content.draft.create:

ibexa.user.create:
path: /user/create/{contentTypeIdentifier}/{language}/{parentLocationId}
defaults:
_controller: Ibexa\Bundle\ContentForms\Controller\UserController:createAction
controller: Ibexa\Bundle\ContentForms\Controller\UserController::createAction

ibexa.user.update:
path: /user/update/{contentId}/{versionNo}/{language}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Content/View/Builder/ContentCreateViewBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ContentCreateViewBuilder extends AbstractContentViewBuilder implements Vie
{
public function matches($argument)
{
return 'ibexa_content_edit:createWithoutDraftAction' === $argument;
return 'ibexa_content_edit::createWithoutDraftAction' === $argument;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Content/View/ContentCreateSuccessView.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(Response $response)
parent::__construct('@IbexaContentForms/http/302_empty_content.html.twig');

$this->setResponse($response);
$this->setControllerReference(new ControllerReference('ibexa_content_edit:createWithoutDraftSuccessAction'));
$this->setControllerReference(new ControllerReference('ibexa_content_edit::createWithoutDraftSuccessAction'));
}

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

Expand Down

0 comments on commit 49c6f0e

Please sign in to comment.