Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit804e019

Browse files
committed
minor#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 containsthe bug (seehttps://symfony.com/releases for the list of maintained branches).If your pull request documents a NEW FEATURE, use the same Symfony branch wherethe 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 parents999edae +8cab7bb commit804e019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎routing.rst‎

Lines changed: 1 addition & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp