You are here

public function Kernel::isClassInActiveBundle in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Kernel.php \Symfony\Component\HttpKernel\Kernel::isClassInActiveBundle()

Overrides KernelInterface::isClassInActiveBundle

Deprecated

since version 2.6, to be removed in 3.0.

File

vendor/symfony/http-kernel/Kernel.php, line 210

Class

Kernel
The Kernel is the heart of the Symfony system.

Namespace

Symfony\Component\HttpKernel

Code

public function isClassInActiveBundle($class) {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.6 and will be removed in version 3.0.', E_USER_DEPRECATED);
  foreach ($this
    ->getBundles() as $bundle) {
    if (0 === strpos($class, $bundle
      ->getNamespace())) {
      return true;
    }
  }
  return false;
}