File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ interoperability standard for PHP namespaces and class names: it starts with a
22
22
vendor segment, followed by zero or more category segments, and it ends with the
23
23
namespace short name, which must end with ``Bundle ``.
24
24
25
- A namespace becomes a bundle as soon as you add a bundle class to it. The
26
- bundle class name must follow these rules:
25
+ A namespace becomes a bundle as soon as you add "a bundle class" to it (which is
26
+ a class that extends :class: `Symfony\\ Component\\ HttpKernel\\ Bundle\\ Bundle `).
27
+ The bundle class name must follow these rules:
27
28
28
- * Extend Symfony\C omponent\H ttpKernel\B undle\B undle
29
29
* Use only alphanumeric characters and underscores;
30
30
* Use a StudlyCaps name (i.e. camelCase with an uppercase first letter);
31
31
* Use a descriptive and short name (no more than two words);
@@ -42,6 +42,9 @@ Namespace Bundle Class Name
42
42
``Acme\BlogBundle `` AcmeBlogBundle
43
43
========================== ==================
44
44
45
+ By convention, the ``getName() `` method of the bundle class should return the
46
+ class name.
47
+
45
48
.. note ::
46
49
47
50
If you share your bundle publicly, you must use the bundle class name as
You can’t perform that action at this time.
0 commit comments