WellCommerce\Bundle\DistributionBundle\Locator\BundleLocator::getBundleClass PHP Method

getBundleClass() private method

Returns FQCN for file
private getBundleClass ( Symfony\Component\Finder\SplFileInfo $fileInfo ) : string | null
$fileInfo Symfony\Component\Finder\SplFileInfo
return string | null
    private function getBundleClass(SplFileInfo $fileInfo)
    {
        $reflection = new ReflectionFile($fileInfo->getRealPath());
        $baseName = $fileInfo->getBasename('.php');
        foreach ($reflection->getNamespaces() as $namespace) {
            return $namespace . '\\' . $baseName;
        }
        return null;
    }