File tree Expand file tree Collapse file tree 3 files changed +53
-0
lines changed
src/Symfony/Component/HttpKernel Expand file tree Collapse file tree 3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,32 @@ HttpKernel
109109----------
110110
111111 * The `DebugHandlersListener` class has been marked as `final`
112+ * Added new Bundle directory convention consistent with standard skeletons:
113+
114+ ```
115+ └── MyBundle/
116+ ├── config/
117+ ├── public/
118+ ├── src/
119+ │ └── MyBundle.php
120+ ├── templates/
121+ └── translations/
122+ ```
123+
124+ To make this work properly, it is necessary to change the root path of the bundle :
125+
126+ ` ` ` php
127+ class MyBundle extends Bundle
128+ {
129+ public function getPath(): string
130+ {
131+ return \d irname(__DIR__);
132+ }
133+ }
134+ ` ` `
135+
136+ As many bundles must be compatible with a range of Symfony versions, the current
137+ directory convention is not deprecated yet, but it will be in the future.
112138
113139Lock
114140----
Original file line number Diff line number Diff line change @@ -302,6 +302,32 @@ HttpKernel
302302 * Removed `TranslatorListener` in favor of `LocaleAwareListener`
303303 * The `DebugHandlersListener` class has been made `final`
304304 * Removed `SaveSessionListener` in favor of `AbstractSessionListener`
305+ * Added new Bundle directory convention consistent with standard skeletons:
306+
307+ ```
308+ └── MyBundle/
309+ ├── config/
310+ ├── public/
311+ ├── src/
312+ │ └── MyBundle.php
313+ ├── templates/
314+ └── translations/
315+ ```
316+
317+ To make this work properly, it is necessary to change the root path of the bundle :
318+
319+ ` ` ` php
320+ class MyBundle extends Bundle
321+ {
322+ public function getPath(): string
323+ {
324+ return \d irname(__DIR__);
325+ }
326+ }
327+ ` ` `
328+
329+ As many bundles must be compatible with a range of Symfony versions, the current
330+ directory convention is not deprecated yet, but it will be in the future.
305331
306332Intl
307333----
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ CHANGELOG
55-----
66
77 * The ` DebugHandlersListener ` class has been marked as ` final `
8+ * Added new Bundle directory convention consistent with standard skeletons
89
9104.3.0
1011-----
You can’t perform that action at this time.
0 commit comments