Skip to content

Commit c5a7487

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Update routing.rst
2 parents b9b21f9 + 0fd85a5 commit c5a7487

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/routing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@ A routing system has three parts:
4040
Here is a quick example::
4141

4242
use App\Controller\BlogController;
43+
use Symfony\Component\Routing\Generator\UrlGenerator;
4344
use Symfony\Component\Routing\Matcher\UrlMatcher;
4445
use Symfony\Component\Routing\RequestContext;
4546
use Symfony\Component\Routing\Route;
4647
use Symfony\Component\Routing\RouteCollection;
4748

48-
$route = new Route('/blog/{slug}', ['_controller' => BlogController::class])
49+
$route = new Route('/blog/{slug}', ['_controller' => BlogController::class]);
4950
$routes = new RouteCollection();
5051
$routes->add('blog_show', $route);
5152

0 commit comments

Comments
 (0)