protected function findBundleFiles(PackageInterface $package)
    {
        $installPath = $this->composer->getInstallationManager()->getInstallPath($package);

        $autoload = $package->getAutoload();
        if (isset($autoload['psr-0'])) {
            $installPath .= '/' . current($autoload['psr-0']);
        }
        if (isset($autoload['psr-4'])) {
            $installPath .= '/' . current($autoload['psr-4']);
        }

        return glob(rtrim($installPath, '/') . '/*Bundle.php');
    }
protected function findBundleFiles(PackageInterface $package)
    {
        $installPath = $this->composer->getInstallationManager()->getInstallPath($package);

        $autoload = $package->getAutoload();
        if (isset($autoload['psr-0'])) {
            $installPath .= '/' . current($autoload['psr-0']);
        }
        if (isset($autoload['psr-4'])) {
            $installPath .= '/' . current($autoload['psr-4']);
        }

        return glob(rtrim($installPath, '/') . '/*Bundle.php');
    }
protected function findBundleFiles ( PackageInterface $ package ) { $ installPath = $ this -> composer -> getInstallationManager ( ) -> getInstallPath ( $ package ) ; $ autoload = $ package -> getAutoload ( ) ; if ( isset ( $ autoload [ 'psr-0' ] ) ) { $ installPath .= '/' . current ( $ autoload [ 'psr-0' ] ) ; } if ( isset ( $ autoload [ 'psr-4' ] ) ) { $ installPath .= '/' . current ( $ autoload [ 'psr-4' ] ) ; } return glob ( rtrim ( $ installPath , '/' ) . '/*Bundle.php' ) ; }
This method tries the find the BundleFile in the root of
the given package. At this moment we don't support bundles
that don't have the Bundle file in the package root.
This method tries the find the BundleFile in the root of the given package . At this moment we don t support bundles that don t have the Bundle file in the package root .