Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit64b5f34

Browse files
committed
Merge pull request#2733 from alxp/code_snippet_fixes
Added namespace declaration to MainController.php.
2 parents8d05a52 +0ff91da commit64b5f34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎book/http_fundamentals.rst

Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp