Skip to content

Commit 4a2401c

Browse files
committed
[HttpKernel] Add deprecation log for Kernel::isClassInActiveBundle()
See #11869 and #12854
1 parent 88203a6 commit 4a2401c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)