Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4378c3

Browse files
committed
minor #6006 [Book] use AppBundle examples and follow best practices (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- [Book] use AppBundle examples and follow best practices | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | Commits ------- 2394e3f use AppBundle examples and follow best practices
2 parents 1f183cf + 2394e3f commit c4378c3

File tree

4 files changed

+122
-121
lines changed

4 files changed

+122
-121
lines changed

book/from_flat_php_to_symfony2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ them for you. Here's the same sample application, now built in Symfony::
554554
{
555555
$posts = $this->get('doctrine')
556556
->getManager()
557-
->createQuery('SELECT p FROM AcmeBlogBundle:Post p')
557+
->createQuery('SELECT p FROM AppBundle:Post p')
558558
->execute();
559559

560560
return $this->render('Blog/list.html.php', array('posts' => $posts));

book/page_creation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ at the end:
191191
192192
.. code-block:: xml
193193
194-
<!-- src/Acme/DemoBundle/Resources/config/routing.xml -->
194+
<!-- app/config/routing.xml -->
195195
<?xml version="1.0" encoding="UTF-8" ?>
196196
<routes xmlns="http://symfony.com/schema/routing"
197197
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -205,7 +205,7 @@ at the end:
205205
206206
.. code-block:: php
207207
208-
// src/Acme/DemoBundle/Resources/config/routing.php
208+
// app/config/routing.php
209209
use Symfony\Component\Routing\RouteCollection;
210210
use Symfony\Component\Routing\Route;
211211

book/routing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,9 +1110,9 @@ Notice that Symfony adds the string ``Controller`` to the class name (``Blog``
11101110
=> ``BlogController``) and ``Action`` to the method name (``show`` => ``showAction``).
11111111

11121112
You could also refer to this controller using its fully-qualified class name
1113-
and method: ``Acme\BlogBundle\Controller\BlogController::showAction``.
1114-
But if you follow some simple conventions, the logical name is more concise
1115-
and allows more flexibility.
1113+
and method: ``AppBundle\Controller\BlogController::showAction``. But if you
1114+
follow some simple conventions, the logical name is more concise and allows
1115+
more flexibility.
11161116

11171117
.. note::
11181118

0 commit comments

Comments
 (0)