Skip to content

Commit c8f5ad5

Browse files
committed
Updated to use AppBundle
1 parent b735642 commit c8f5ad5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

book/from_flat_php_to_symfony2.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,8 @@ from scratch, you could at least use Symfony's standalone `Routing`_ and
547547
Instead of re-solving common problems, you can let Symfony take care of
548548
them for you. Here's the same sample application, now built in Symfony::
549549

550-
// src/Acme/BlogBundle/Controller/BlogController.php
551-
namespace Acme\BlogBundle\Controller;
550+
// src/AppBundle/Controller/BlogController.php
551+
namespace AppBundle\Controller;
552552

553553
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
554554

@@ -571,7 +571,7 @@ them for you. Here's the same sample application, now built in Symfony::
571571
{
572572
$post = $this->get('doctrine')
573573
->getManager()
574-
->getRepository('AcmeBlogBundle:Post')
574+
->getRepository('AppBundle:Post')
575575
->find($id);
576576

577577
if (!$post) {
@@ -644,11 +644,11 @@ A routing configuration map provides this information in a readable format:
644644
# app/config/routing.yml
645645
blog_list:
646646
path: /blog
647-
defaults: { _controller: AcmeBlogBundle:Blog:list }
647+
defaults: { _controller: AppBundle:Blog:list }
648648
649649
blog_show:
650650
path: /blog/show/{id}
651-
defaults: { _controller: AcmeBlogBundle:Blog:show }
651+
defaults: { _controller: AppBundle:Blog:show }
652652
653653
Now that Symfony is handling all the mundane tasks, the front controller
654654
is dead simple. And since it does so little, you'll never have to touch

0 commit comments

Comments
 (0)