File tree 4 files changed +447
-50
lines changed
contributing/documentation
4 files changed +447
-50
lines changed Original file line number Diff line number Diff line change 111
111
lexers ['markdown' ] = TextLexer ()
112
112
lexers ['php' ] = PhpLexer (startinline = True )
113
113
lexers ['php-annotations' ] = PhpLexer (startinline = True )
114
+ lexers ['php-attributes' ] = PhpLexer (startinline = True )
114
115
lexers ['php-standalone' ] = PhpLexer (startinline = True )
115
116
lexers ['php-symfony' ] = PhpLexer (startinline = True )
116
117
lexers ['rst' ] = RstLexer ()
Original file line number Diff line number Diff line change @@ -223,12 +223,13 @@ important parts of your application.
223
223
224
224
.. _best-practice-controller-annotations :
225
225
226
- Use Annotations to Configure Routing, Caching and Security
227
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
226
+ Use Attributes or Annotations to Configure Routing, Caching and Security
227
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
228
228
229
- Using annotations for routing, caching and security simplifies configuration.
230
- You don't need to browse several files created with different formats (YAML, XML,
231
- PHP): all the configuration is just where you need it and it only uses one format.
229
+ Using attributes or annotations for routing, caching and security simplifies
230
+ configuration. You don't need to browse several files created with different
231
+ formats (YAML, XML, PHP): all the configuration is just where you need it and
232
+ it only uses one format.
232
233
233
234
Don't Use Annotations to Configure the Controller Template
234
235
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ Markup Format Use It to Display
104
104
``html+php `` PHP code blended with HTML
105
105
``ini `` INI
106
106
``php-annotations `` PHP Annotations
107
+ ``php-attributes `` PHP Attributes
107
108
=================== ======================================
108
109
109
110
Adding Links
You can’t perform that action at this time.
0 commit comments