Skip to content

Commit 2a0a716

Browse files
landsmanOskarStark
authored andcommitted
bundles - add reason why they are not recommended
1 parent a1baaf1 commit 2a0a716

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

best_practices.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ values is that it's complicated to redefine their values in your tests.
160160
Business Logic
161161
--------------
162162

163+
.. _best-practice-no-application-bundles:
164+
163165
Don't Create any Bundle to Organize your Application Logic
164166
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
165167

bundles.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The Bundle System
66
.. caution::
77

88
In Symfony versions prior to 4.0, it was recommended to organize your own
9-
application code using bundles. This is no longer recommended and bundles
9+
application code using bundles. This is :ref:`no longer recommended <best-practice-no-application-bundles>` and bundles
1010
should only be used to share code and features between multiple applications.
1111

1212
A bundle is similar to a plugin in other software, but even better. The core

0 commit comments

Comments
 (0)