Skip to content

Commit cee7ae0

Browse files
committed
fix controller reference syntax
1 parent b7edf31 commit cee7ae0

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

doc/routing-bundle/configuration.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ enhancers define a template but no explicit controller. It accepts any valid
134134
Symfony controller reference.
135135

136136
If the :doc:`CoreBundle </bundles/core/introduction>` and
137-
`ContentBundle`_ (no longer maintained) are registered, this defaults to ``cmf_content.controller:indexAction``.
137+
`ContentBundle`_ (no longer maintained) are registered, this defaults to ``cmf_content.controller::indexAction``.
138138

139139
``default_controller``
140140
......................
@@ -212,7 +212,7 @@ choose this controller to handle the request.
212212
cmf_routing:
213213
dynamic:
214214
controllers_by_class:
215-
Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent: cmf_content.controller:indexAction
215+
Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent: cmf_content.controller::indexAction
216216
217217
.. code-block:: xml
218218
@@ -224,7 +224,7 @@ choose this controller to handle the request.
224224
<dynamic>
225225
<controller-by-class
226226
class="Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent">
227-
cmf_content.controller:indexAction
227+
cmf_content.controller::indexAction
228228
</controller-by-class>
229229
</dynamic>
230230
</config>
@@ -239,7 +239,7 @@ choose this controller to handle the request.
239239
$container->loadFromExtension('cmf_routing', [
240240
'dynamic' => [
241241
'controllers_by_class' => [
242-
StaticContent::class => 'cmf_content.controller:indexAction',
242+
StaticContent::class => 'cmf_content.controller::indexAction',
243243
),
244244
),
245245
));

doc/routing-bundle/dynamic.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ All routes are located under a configured root path, for example
239239
$route->setParentDocument($dm->find(null, '/cms/routes'));
240240
$route->setName('projects');
241241

242-
// set explicit controller (both service and Bundle:Name:action syntax work)
243-
$route->setDefault('_controller', 'app.controller:specialAction');
242+
// set explicit controller
243+
$route->setDefault('_controller', 'app.controller::specialAction');
244244

245245
The above example should probably be done as a route configured in a Symfony
246246
configuration file, unless the end user is supposed to change the URL
@@ -666,7 +666,7 @@ documents. You need to configure the route enhancer for this interface:
666666
cmf_routing:
667667
dynamic:
668668
controllers_by_class:
669-
Symfony\Cmf\Component\Routing\RedirectRouteInterface: cmf_routing.redirect_controller:redirectAction
669+
Symfony\Cmf\Component\Routing\RedirectRouteInterface: cmf_routing.redirect_controller::redirectAction
670670
671671
.. code-block:: xml
672672
@@ -676,7 +676,7 @@ documents. You need to configure the route enhancer for this interface:
676676
<config xmlns="http://cmf.symfony.com/schema/dic/routing">
677677
<dynamic>
678678
<controller-by-class class="Symfony\Cmf\Component\Routing\RedirectRouteInterface">
679-
cmf_routing.redirect_controller:redirectAction
679+
cmf_routing.redirect_controller::redirectAction
680680
</controller-by-class>
681681
</dynamic>
682682
</config>
@@ -690,7 +690,7 @@ documents. You need to configure the route enhancer for this interface:
690690
$container->loadFromExtension('cmf_routing', [
691691
'dynamic' => [
692692
'controllers_by_class' => [
693-
RedirectRouteInterface::class => 'cmf_routing.redirect_controller:redirectAction',
693+
RedirectRouteInterface::class => 'cmf_routing.redirect_controller::redirectAction',
694694
],
695695
],
696696
]);

0 commit comments

Comments
 (0)