8000 [HttpKernel] Add deprecation log for Kernel::isClassInActiveBundle() · symfony/symfony@5ba6d1f · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ba6d1f

Browse files
committed
[HttpKernel] Add deprecation log for Kernel::isClassInActiveBundle()
See #11869 and #12854
1 parent f8fb8a9 commit 5ba6d1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ public function getBundles()
214214
*/
215215
public function isClassInActiveBundle($class)
216216
{
217+
trigger_error('Symfony\\Component\\HttpKernel\\Kernel::isClassInActiveBundle() is deprecated since version 2.6 and will be removed in version 3.0.', E_USER_DEPRECATED);
218+
217219
foreach ($this->getBundles() as $bundle) {
218220
if (0 === strpos($class, $bundle->getNamespace())) {
219221
return true;

0 commit comments

Comments
 (0)
0