Checks if a given class name belongs to an active bundle.
@api
string $class A class name:
Boolean true if the class belongs to an active bundle, false otherwise
Overrides KernelInterface::isClassInActiveBundle
public function isClassInActiveBundle($class) {
foreach ($this
->getBundles() as $bundle) {
if (0 === strpos($class, $bundle
->getNamespace())) {
return true;
}
}
return false;
}