Skip to content

Commit ce41d30

Browse files
ViniTouadamwojs
authored andcommitted
Even more fixing for deprecated controller route syntax
1 parent c4ceb19 commit ce41d30

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/bundle/Resources/config/routing.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ibexa.content.create_no_draft:
22
path: /content/create/nodraft/{contentTypeIdentifier}/{language}/{parentLocationId}
3-
controller: ibexa_content_edit:createWithoutDraftAction
3+
controller: ibexa_content_edit::createWithoutDraftAction
44
options:
55
expose: true
66
# @todo rename language to languageCode in 3.0
@@ -26,8 +26,7 @@ ibexa.content.draft.create:
2626

2727
ibexa.user.create:
2828
path: /user/create/{contentTypeIdentifier}/{language}/{parentLocationId}
29-
defaults:
30-
_controller: Ibexa\Bundle\ContentForms\Controller\UserController:createAction
29+
controller: Ibexa\Bundle\ContentForms\Controller\UserController::createAction
3130

3231
ibexa.user.update:
3332
path: /user/update/{contentId}/{versionNo}/{language}

src/lib/Content/View/Builder/ContentCreateViewBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ContentCreateViewBuilder extends AbstractContentViewBuilder implements Vie
2424
{
2525
public function matches($argument)
2626
{
27-
return 'ibexa_content_edit:createWithoutDraftAction' === $argument;
27+
return 'ibexa_content_edit::createWithoutDraftAction' === $argument;
2828
}
2929

3030
/**

src/lib/Content/View/ContentCreateSuccessView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(Response $response)
2929
parent::__construct('@IbexaContentForms/http/302_empty_content.html.twig');
3030

3131
$this->setResponse($response);
32-
$this->setControllerReference(new ControllerReference('ibexa_content_edit:createWithoutDraftSuccessAction'));
32+
$this->setControllerReference(new ControllerReference('ibexa_content_edit::createWithoutDraftSuccessAction'));
3333
}
3434

3535
/**

src/lib/Content/View/Filter/ContentCreateViewFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static function getSubscribedEvents(): array
6868
*/
6969
public function handleContentCreateForm(FilterViewBuilderParametersEvent $event)
7070
{
71-
if ('ibexa_content_edit:createWithoutDraftAction' !== $event->getParameters()->get('_controller')) {
71+
if ('ibexa_content_edit::createWithoutDraftAction' !== $event->getParameters()->get('_controller')) {
7272
return;
7373
}
7474

0 commit comments

Comments
 (0)