We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9b21f9 + 0fd85a5 commit c5a7487Copy full SHA for c5a7487
components/routing.rst
@@ -40,12 +40,13 @@ A routing system has three parts:
40
Here is a quick example::
41
42
use App\Controller\BlogController;
43
+ use Symfony\Component\Routing\Generator\UrlGenerator;
44
use Symfony\Component\Routing\Matcher\UrlMatcher;
45
use Symfony\Component\Routing\RequestContext;
46
use Symfony\Component\Routing\Route;
47
use Symfony\Component\Routing\RouteCollection;
48
- $route = new Route('/blog/{slug}', ['_controller' => BlogController::class])
49
+ $route = new Route('/blog/{slug}', ['_controller' => BlogController::class]);
50
$routes = new RouteCollection();
51
$routes->add('blog_show', $route);
52
0 commit comments