-
Notifications
You must be signed in to change notification settings - Fork 156
[routing] change doc to best practices #801
Conversation
@@ -125,7 +125,7 @@ generic_controller | |||
|
|||
The controller to use when the route enhancers only determined the template but | |||
no explicit controller. The value is the name of a controller using either the | |||
``AcmeDemoBundle::Page::index`` or ``acme_demo.controller.page:indexAction`` | |||
``AppBundle::Page::index`` or ``app.page_controller:indexAction`` | |||
notation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, actually, all controller formats are supported right? So maybe we shouldn't explicitely mention these 2 (as you can also do FQCN::methodName
)
cmf_routing: | ||
dynamic: | ||
controllers_by_type: | ||
editable: acme_main.controller:editableAction | ||
editable: app.cms_controller:editableAction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As best practices don't suggest using controllers as services, what about using AppBundle:Cms:editable
here?
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- app/config/config.xml --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be before the doctype
@@ -211,6 +214,7 @@ choose this controller to handle the request. | |||
.. code-block:: xml | |||
|
|||
<?xml version="1.0" encoding="UTF-8" ?> | |||
<!-- app/config/config.xml --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
@@ -264,7 +272,7 @@ setting is set as controller. | |||
|
|||
<?xml version="1.0" encoding="UTF-8" ?> | |||
<container xmlns="http://symfony.com/schema/dic/services"> | |||
|
|||
<!-- app/config/config.xml --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
@@ -61,6 +62,7 @@ is executed. | |||
.. code-block:: xml | |||
|
|||
<?xml version="1.0" encoding="UTF-8" ?> | |||
<!-- app/config/services.xml --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... and here (you get the point, everywhere 😉 )
incorporated all this feedback in #804 that is against the correct branch |
No description provided.