Skip to content

Update best_practices.rst #14850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions bundles/best_practices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ namespace short name, which must end with ``Bundle``.
A namespace becomes a bundle as soon as you add a bundle class to it. The
bundle class name must follow these rules:

* Extend Symfony\Component\HttpKernel\Bundle\Bundle
* Use only alphanumeric characters and underscores;
* Use a StudlyCaps name (i.e. camelCase with an uppercase first letter);
* Use a descriptive and short name (no more than two words);
Expand All @@ -41,9 +42,6 @@ Namespace Bundle Class Name
``Acme\BlogBundle`` AcmeBlogBundle
========================== ==================

By convention, the ``getName()`` method of the bundle class should return the
class name.

.. note::

If you share your bundle publicly, you must use the bundle class name as
Expand Down