/** * {@inheritDoc} */ public function getAllClassNames() { if (!$this->locator instanceof AdvancedFileLocatorInterface) { throw new \RuntimeException('Locator "%s" must be an instance of "AdvancedFileLocatorInterface".'); } return $this->locator->findAllClasses($this->getExtension()); }