private function getFilePath($bundlePrefix, $pathParts) { $kernel = $this->getContainer()->get('kernel'); $basePath = $kernel->locateResource('@' . $bundlePrefix); return FileUtils::concatPath($basePath, FileUtils::concatPathArray($pathParts)); }