8000 [HttpKernel] deprecated bundle inheritance · symfony/symfony@cad7f61 · GitHub
[go: up one dir, main page]

Skip to content

Commit cad7f61

Browse files
committed
[HttpKernel] deprecated bundle inheritance
1 parent d5055a0 commit cad7f61

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

UPGRADE-3.4.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ FrameworkBundle
173173
HttpKernel
174174
----------
175175

176+
* Bundle inheritance has been deprecated.
177+
176178
* Relying on convention-based commands discovery has been deprecated and
177179
won't be supported in 4.0. Use PSR-4 based service discovery instead.
178180

UPGRADE-4.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,8 @@ HttpFoundation
493493
HttpKernel
494494
----------
495495

496+
* Bundle inheritance has been removed.
497+
496498
* Relying on convention-based commands discovery is not supported anymore.
497499
Use PSR-4 based service discovery instead.
498500

src/Symfony/Component/HttpKernel/Bundle/BundleInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public function getContainerExtension();
5656
* bundle.
5757
*
5858
* @return string The Bundle name it overrides or null if no parent
59+
*
60+
* @deprecated This method is deprecated as of 3.4 and will be removed in 4.0.
5961
*/
6062
public function getParent();
6163

src/Symfony/Component/HttpKernel/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
3.4.0
55
-----
66

7+
* deprecated bundle inheritance
78
* added `RebootableInterface` and implemented it in `Kernel`
89
* deprecated commands auto registration
910
* added `AddCacheClearerPass`

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,8 @@ protected function initializeBundles()
468468
$this->bundles[$name] = $bundle;
469469

470470
if ($parentName = $bundle->getParent()) {
471+
@trigger_error('Bundle inheritance is deprecated as of 3.4 and will be removed in 4.0.', E_USER_DEPRECATED);
472+
471473
if (isset($directChildren[$parentName])) {
472474
throw new \LogicException(sprintf('Bundle "%s" is directly extended by two bundles "%s" and "%s".', $parentName, $name, $directChildren[$parentName]));
473475
}

0 commit comments

Comments
 (0)
0