File tree 2 files changed +21
-22
lines changed
Filter options
2 files changed +21
-22
lines changed
Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ routes with UTF-8 characters:
424
424
<route id =" route1"
425
425
path =" /category/{name}"
426
426
controller =" App\Controller\DefaultController::category"
427
- utf8 =" true" />
427
+ utf8 =" true" />
428
428
</routes >
429
429
430
430
.. code-block :: php
@@ -443,25 +443,24 @@ routes with UTF-8 characters:
443
443
444
444
.. versionadded :: 4.3
445
445
446
- The ``utf8 `` shortcut has been introduced in Symfony 4.3.
447
- Before you has to use the ``options `` setting to define
448
- this value:
446
+ The ``utf8 `` option/method has been introduced in Symfony 4.3.
447
+ Before you had to use the ``options `` setting to define this value:
449
448
450
449
.. configuration-block ::
451
450
452
451
.. code-block :: php-annotations
453
452
454
453
route1:
455
- path: /category/{name}
454
+ path: /category/{name}
456
455
controller: App\Controller\DefaultController::category
457
- options: { utf8: true }
456
+ options: { utf8: true }
458
457
459
- .. code-block :: yaml
458
+ .. code-block :: yaml
460
459
461
- route1 :
462
- path : /category/{name}
463
- controller : App\Controller\DefaultController::category
464
- utf8 : true
460
+ route1 :
461
+ path : /category/{name}
462
+ controller : App\Controller\DefaultController::category
463
+ utf8 : true
465
464
466
465
.. code-block :: xml
467
466
@@ -473,7 +472,7 @@ routes with UTF-8 characters:
473
472
474
473
<route id =" route1"
475
474
path =" /category/{name}"
476
- controller="App\Controller\DefaultController::category" >
475
+ controller =" App\Controller\DefaultController::category" >
477
476
<option key =" utf8" >true</option >
478
477
</route >
479
478
</routes >
@@ -544,7 +543,7 @@ You can also include UTF-8 strings as routing requirements:
544
543
<route id =" route2"
545
544
path =" /category/{name}"
546
545
controller =" App\Controller\DefaultController::category"
547
- utf8 =" true" >
546
+ utf8 =" true" >
548
547
<default key =" name" >한국어</default >
549
548
</route >
550
549
</routes >
Original file line number Diff line number Diff line change @@ -776,13 +776,13 @@ You can also use special attributes to configure them (except ``_fragment``):
776
776
777
777
# config/routes.yaml
778
778
article_search :
779
- path : /articles/{_locale}/search.{_format}
780
- controller : App\Controller\ArticleController::search
781
- locale : en
782
- format : html
779
+ path : /articles/{_locale}/search.{_format}
780
+ controller : App\Controller\ArticleController::search
781
+ locale : en
782
+ format : html
783
783
requirements :
784
- _locale : en|fr
785
- _format : html|xml
784
+ _locale : en|fr
785
+ _format : html|xml
786
786
787
787
.. code-block :: xml
788
788
@@ -816,19 +816,19 @@ You can also use special attributes to configure them (except ``_fragment``):
816
816
$routes->add('article_show', '/articles/{_locale}/search.{_format}')
817
817
->controller([ArticleController::class, 'search'])
818
818
->locale('en')
819
- ->format('html)
819
+ ->format('html' )
820
820
->requirements([
821
821
'_locale' => 'en|fr',
822
822
'_format' => 'html|rss',
823
823
])
824
824
;
825
825
};
826
826
827
- Those attributes can also be used for imports.
827
+ These attributes can also be used for route imports.
828
828
829
829
.. versionadded ::
830
830
831
- The special attributes has been introduced in Symfony 4.3.
831
+ The special attributes were introduced in Symfony 4.3.
832
832
833
833
.. _routing-trailing-slash-redirection :
834
834
You can’t perform that action at this time.
0 commit comments