protected function getBundleName(ReflectionClass $reflectionClass) : string { $currentBundle = $this->getBundleForClass($reflectionClass); return $currentBundle->getName(); }