File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -229,15 +229,17 @@ Naming Conventions
229
229
Service Naming Conventions
230
230
~~~~~~~~~~~~~~~~~~~~~~~~~~
231
231
232
- * A service name contains groups, separated by dots;
232
+ * A service name must be the same as the fully qualified class name (FQCN) of
233
+ its class (e.g. ``App\EventSubscriber\UserSubscriber ``);
233
234
234
- * The DI alias of the bundle is the first group (e.g. ``fos_user ``);
235
+ * If there are multiple services for the same class, use the FQCN for the main
236
+ service and use lowercased and underscored names for the rest of services.
237
+ Optionally divide them in groups separated with dots (e.g.
238
+ ``something.service_name ``, ``fos_user.something.service_name ``);
235
239
236
- * Use lowercase letters for service and parameter names (except when referring
240
+ * Use lowercase letters for parameter names (except when referring
237
241
to environment variables with the ``%env(VARIABLE_NAME)% `` syntax);
238
242
239
- * A group name uses the underscore notation;
240
-
241
243
* Add class aliases for public services (e.g. alias ``Symfony\Component\Something\ClassName ``
242
244
to ``something.service_name ``).
243
245
You can’t perform that action at this time.
0 commit comments