ade83e2e80
Controllers: "BlogBundle:Post:show" is now "Blog:Post:show" Templates: "BlogBundle:Post:show.html.twig" is now "Blog:Post:show.html.twig" Resources: "@BlogBundle/Resources/config/blog.xml" is now "@Blog/Resources/config/blog.xml" Doctrine: "$em->find('BlogBundle:Post', $id)" is now "$em->find('Blog:Post', $id)"
11 lines
258 B
PHP
11 lines
258 B
PHP
<?php
|
|
use Symfony\Component\Routing\RouteCollection;
|
|
use Symfony\Component\Routing\Route;
|
|
|
|
$collection = new RouteCollection();
|
|
$collection->add('blog_show', new Route('/blog/{slug}', array(
|
|
'_controller' => 'MyBlog:Blog:show',
|
|
)));
|
|
|
|
return $collection;
|