Skip to content

Commit 382f9a6

Browse files
authored
IBX-9513: Fixed obsolete ibexa_* controller references (#474)
1 parent 6b2d7a3 commit 382f9a6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/bundle/Core/Features/QueryController/setup.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Feature: Query controller
2121
template: "@IbexaBehat/tests/dump.html.twig"
2222
match:
2323
Id\Location: "%location_id(QueryControllerContainer/QueryControllerItem1)%"
24-
controller: ibexa_query:locationQueryAction
24+
controller: ibexa_query::locationQueryAction
2525
params:
2626
query:
2727
query_type: 'LocationChildren'
@@ -32,7 +32,7 @@ Feature: Query controller
3232
template: "@IbexaBehat/tests/dump.html.twig"
3333
match:
3434
Id\Location: "%location_id(QueryControllerContainer/QueryControllerItem2)%"
35-
controller: ibexa_query:pagingQueryAction
35+
controller: ibexa_query::pagingQueryAction
3636
params:
3737
query:
3838
query_type: 'LocationChildren'
@@ -43,7 +43,7 @@ Feature: Query controller
4343
template: tests.html.twig
4444
match:
4545
Id\Location: "%location_id(QueryControllerContainer/QueryControllerItem3)%"
46-
controller: ibexa_query:pagingQueryAction
46+
controller: ibexa_query::pagingQueryAction
4747
params:
4848
query:
4949
query_type: 'LocationChildren'
@@ -55,7 +55,7 @@ Feature: Query controller
5555
template: tests.html.twig
5656
match:
5757
Id\Location: "%location_id(QueryControllerContainer/QueryControllerItem4)%"
58-
controller: ibexa_query:pagingQueryAction
58+
controller: ibexa_query::pagingQueryAction
5959
params:
6060
query:
6161
query_type: 'LocationChildren'

src/bundle/Core/Resources/views/content_fields.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@
461461
{% apply spaceless %}
462462
{% if not ibexa_field_is_empty(content, field) and parameters.available %}
463463
<div {{ block('field_attributes') }}>
464-
{{ render(controller('ibexa_content:embedAction', {
464+
{{ render(controller('ibexa_content::embedAction', {
465465
contentId: field.value.destinationContentId,
466466
viewType: 'asset_image',
467467
no_layout: true,

src/lib/MVC/Symfony/View/Builder/ContentViewBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ private function canRead(Content $content, Location $location = null, bool $isEm
285285
*/
286286
private function isEmbed($parameters): bool
287287
{
288-
if ($parameters['_controller'] === 'ibexa_content:embedAction') {
288+
if ($parameters['_controller'] === 'ibexa_content::embedAction') {
289289
return true;
290290
}
291291
if (\in_array($parameters['viewType'], ['embed', 'embed-inline'])) {

tests/lib/MVC/Symfony/View/Builder/ContentViewBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function testBuildEmbedViewWithNullMainRequest(): void
237237

238238
$parameters = [
239239
'viewType' => 'embed',
240-
'_controller' => 'ibexa_content:embedAction',
240+
'_controller' => 'ibexa_content::embedAction',
241241
'contentId' => $contentId,
242242
];
243243

@@ -273,7 +273,7 @@ public function testBuildEmbedViewWithNotNullMainRequest(): void
273273

274274
$parameters = [
275275
'viewType' => 'embed',
276-
'_controller' => 'ez_content:embedAction',
276+
'_controller' => 'ibexa_content::embedAction',
277277
'contentId' => $contentId,
278278
];
279279

0 commit comments

Comments
 (0)