Skip to content

Commit 4a113c3

Browse files
committed
Use ibexa_content::viewAction w/ two colons
`Controller "ibexa_content:viewAction" does neither exist as service nor as class.` See https://doc.ibexa.co/en/5.0/release_notes/ibexa_dxp_v5.0_deprecations/#ibexacore "Dropped single colon notation"
1 parent 0d6b96a commit 4a113c3

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

code_samples/front/render_content_in_php/src/Command/ViewCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
4747

4848
$viewParameters = [
4949
'viewType' => $input->getOption('view-type'),
50-
'_controller' => 'ibexa_content:viewAction',
50+
'_controller' => 'ibexa_content::viewAction',
5151
];
5252

5353
if (!empty($locationId)) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<div class="row">
22
<div class="block-form {{ block_class }}">
33
{{ ibexa_http_cache_tag_relation_location_ids(locationId) }}
4-
{{ render(controller('ibexa_content:viewAction', {
4+
{{ render(controller('ibexa_content::viewAction', {
55
'contentId': contentId,
66
'locationId': locationId,
77
'viewType': 'embed'
88
})) }}
99
<style type="text/css">{{ block_style|raw }}</style>
1010
</div>
11-
</div>
11+
</div>

docs/infrastructure_and_maintenance/request_lifecycle.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ If a wildcard matches, the request's `semanticPathinfo` is updated and the route
110110

111111
`UrlAliasRouter` (`Ibexa\Bundle\Core\Routing\UrlAliasRouter`):
112112
This router uses the `UrlAliasService` to associate the `semanticPathinfo` to a location.
113-
If it finds a location, the request receives the attributes **`locationId`** and **`contentId`**, **`viewType`** is set to `full`, and the **`_controller`** is set to `ibexa_content:viewAction` for now.
113+
If it finds a location, the request receives the attributes **`locationId`** and **`contentId`**, **`viewType`** is set to `full`, and the **`_controller`** is set to `ibexa_content::viewAction` for now.
114114

115115
The `locale_listener` (priority 16) sets the request's **`_locale`** attribute.
116116

@@ -160,7 +160,7 @@ The `HttpKernel` executes the controller with those arguments.
160160
As a reminder, the controller and its argument can be:
161161

162162
- A controller set by the matched route and the request as its argument.
163-
- The default `ibexa_content:viewAction` controller and a `ContentView` as its argument.
163+
- The default `ibexa_content::viewAction` controller and a `ContentView` as its argument.
164164
- A [custom controller](controllers.md) set by the matched view rule and a `View` or the request as its argument (most likely a `ContentView` but there is no restriction).
165165

166166
!!! caution "Permission control"
@@ -227,7 +227,7 @@ The `HttpKernel` retrieves the response attached to the event and continues.
227227
| kernel.controller | Ibexa\Core\MVC\Symfony\View\Configurator\ViewProvider | view.templateIdentifier | @IbexaCore/default/content/full.html.twig |
228228
| kernel.controller | Ibexa\Core\MVC\Symfony\View\Configurator\ViewProvider | view.controllerReference | null |
229229
| kernel.controller | Ibexa\Bundle\Core\EventListener\ViewControllerListener | view | ContentView |
230-
| kernel.controller | Ibexa\Bundle\Core\EventListener\ViewControllerListener | _controller | ibexa_content:viewAction |
230+
| kernel.controller | Ibexa\Bundle\Core\EventListener\ViewControllerListener | _controller | ibexa_content::viewAction |
231231
| (controller execution) | http_kernel | | ContentView |
232232
| kernel.view | Ibexa\Bundle\Core\EventListener\ViewRendererListener | response | Response |
233233

docs/release_notes/ibexa_dxp_v5.0_deprecations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ Support for facet search has been dropped, use the `Aggregation` API instead.
315315
!!! note "Dropped single colon notation"
316316

317317
[[= product_name_base =]]-named controllers can no longer be referenced using a single-colon notation.
318-
For example, `ibexa_content:viewAction` must be changed to `ibexa_content::viewAction`.
318+
For example, `ibexa_content::viewAction` must be changed to `ibexa_content::viewAction`.
319319

320320
The change affects the following controllers:
321321

0 commit comments

Comments
 (0)