Skip to content

Commit 123362b

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Add missing path in PHP routing configuration example
2 parents d868fbe + 804e019 commit 123362b

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)