Skip to content

Commit 64b5f34

Browse files
committed
Merge pull request #2733 from alxp/code_snippet_fixes
Added namespace declaration to MainController.php.
2 parents 8d05a52 + 0ff91da commit 64b5f34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

book/http_fundamentals.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ by adding an entry for ``/contact`` to your routing configuration file:
449449
450450
.. note::
451451

452-
This example uses :doc:`YAML</components/yaml/introduction>` to define the routing
452+
This example uses :doc:`YAML</components/yaml/format>` to define the routing
453453
configuration. Routing configuration can also be written in other formats
454454
such as XML or PHP.
455455

@@ -459,6 +459,8 @@ the ``AcmeDemoBundle:Main:contact`` string is a short syntax that points to a
459459
specific PHP method ``contactAction`` inside a class called ``MainController``::
460460

461461
// src/Acme/DemoBundle/Controller/MainController.php
462+
namespace Acme\DemoBundle\Controller;
463+
462464
use Symfony\Component\HttpFoundation\Response;
463465

464466
class MainController

0 commit comments

Comments
 (0)