Skip to content

Commit 32c2a67

Browse files
committed
minor #20188 bundles - add reason why they are not recommended (landsman)
This PR was submitted for the 6.4 branch but it was squashed and merged into the 5.4 branch instead. Discussion ---------- bundles - add reason why they are not recommended I was missing a link for reasoning why this was deprecated. Please add this missing context. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- 2a0a716 bundles - add reason why they are not recommended
2 parents a1baaf1 + 2a0a716 commit 32c2a67

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

best_practices.rst

+2
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

+1-1
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)