Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 64b5f34

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎book/http_fundamentals.rst

Copy file name to clipboardExpand all lines: book/http_fundamentals.rst
+3-1Lines changed: 3 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.