@@ -319,8 +319,7 @@ Services
319
319
--------
320
320
321
321
If the bundle defines services, they must be prefixed with the bundle alias.
322
- For an AcmeBlogBundle for instance, all services must be prefixed with
323
- ``acme_blog ``.
322
+ For example, AcmeBlogBundle services must be prefixed with ``acme_blog ``.
324
323
325
324
In addition, services not meant to be used by the application directly, should
326
325
be :ref: `defined as private <container-private-services >`.
@@ -330,6 +329,21 @@ be :ref:`defined as private <container-private-services>`.
330
329
You can learn much more about service loading in bundles reading this article:
331
330
:doc: `How to Load Service Configuration inside a Bundle </cookbook/bundles/extension >`.
332
331
332
+ Composer Metadata
333
+ -----------------
334
+
335
+ The ``composer.json `` file should include at least the following metadata:
336
+
337
+ * ``name ``, which includes the vendor and the short bundle name. If you are
338
+ releasing the bundle on your own instead of on behalf of a company, use your
339
+ personal name (e.g. ``johnsmith/blog-bundle ``). The bundle short name excludes
340
+ the vendor name and separates each word with an hyphen. For example:
341
+ ``AcmeBlogBundle `` is transformed into ``blog-bundle `` and ``AcmeSocialConnectBundle ``
342
+ is transformed into ``acme-social-bundle ``;
343
+ * ``description ``, a brief explanation of the purpose of the bundle;
344
+ * ``type ``, use the ``symfony-bundle `` value;
345
+ * ``license ``, use the ``MIT `` value.
346
+
333
347
Learn more from the Cookbook
334
348
----------------------------
335
349
0 commit comments