We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Map
1 parent 0bb8fe2 commit bb61fadCopy full SHA for bb61fad
contributing/code/standards.rst
@@ -230,8 +230,11 @@ Naming Conventions
230
231
* Suffix exceptions with ``Exception``;
232
233
-* Prefix PHP attributes with ``As`` where applicable (e.g. ``#[AsCommand]``
234
- instead of ``#[Command]``, but ``#[When]`` is kept as-is);
+* Prefix PHP attributes that relate to service configuration with ``As``
+ (e.g. ``#[AsCommand]``, ``#[AsEventListener]``, etc.);
235
+
236
+* Prefix PHP attributes that relate to controller arguments with ``Map``
237
+ (e.g. ``#[MapEntity]``, ``#[MapCurrentUser]``, etc.);
238
239
* Use UpperCamelCase for naming PHP files (e.g. ``EnvVarProcessor.php``) and
240
snake case for naming Twig templates and web assets (``section_layout.html.twig``,
0 commit comments