Skip to content

Commit 804e019

Browse files
committed
minor symfony#13953 Add missing path in PHP routing configuration example (ocrampete16)
This PR was merged into the 4.4 branch. Discussion ---------- Add missing path in PHP routing configuration example <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> The annotations and XML examples both specify `/contact` as the path to use. Commits ------- 8cab7bb Add missing path in PHP routing configuration example
2 parents 999edae + 8cab7bb commit 804e019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ arbitrary matching logic:
302302
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
303303
304304
return function (RoutingConfigurator $routes) {
305-
$routes->add('contact', '')
305+
$routes->add('contact', '/contact')
306306
->controller([DefaultController::class, 'contact'])
307307
->condition('context.getMethod() in ["GET", "HEAD"] and request.headers.get("User-Agent") matches "/firefox/i"')
308308
// expressions can also include config parameters:

0 commit comments

Comments
 (0)