src/Rocketeer/Services/Ignition/PluginsIgniter.php
public function findPackageConfiguration($package)
    {
        $paths = [
            $this->paths->getBasePath().'vendor/%s/src/config',
            $this->paths->getBasePath().'vendor/%s/config',
            $this->paths->getRocketeerPath().'/vendor/%s/src/config',
            $this->paths->getRocketeerPath().'/vendor/%s/config',
            $this->paths->getUserHomeFolder().'/.composer/vendor/%s/src/config',
            $this->paths->getUserHomeFolder().'/.composer/vendor/%s/config',
        ];

        // Check for the first configuration path that exists
        $paths = array_map(function ($path) use ($package) {
            return sprintf($path, $package);
        }, $paths);

        return $paths;
    }
public function findPackageConfiguration($package)
    {
        $paths = [
            $this->paths->getBasePath().'vendor/%s/src/config',
            $this->paths->getBasePath().'vendor/%s/config',
            $this->paths->getRocketeerPath().'/vendor/%s/src/config',
            $this->paths->getRocketeerPath().'/vendor/%s/config',
            $this->paths->getUserHomeFolder().'/.composer/vendor/%s/src/config',
            $this->paths->getUserHomeFolder().'/.composer/vendor/%s/config',
        ];

        // Check for the first configuration path that exists
        $paths = array_map(function ($path) use ($package) {
            return sprintf($path, $package);
        }, $paths);

        return $paths;
    }
public function findPackageConfiguration ( $ package ) { $ paths = [ $ this -> paths -> getBasePath ( ) . 'vendor/%s/src/config' , $ this -> paths -> getBasePath ( ) . 'vendor/%s/config' , $ this -> paths -> getRocketeerPath ( ) . '/vendor/%s/src/config' , $ this -> paths -> getRocketeerPath ( ) . '/vendor/%s/config' , $ this -> paths -> getUserHomeFolder ( ) . '/.composer/vendor/%s/src/config' , $ this -> paths -> getUserHomeFolder ( ) . '/.composer/vendor/%s/config' , ] ; // Check for the first configuration path that exists $ paths = array_map ( function ( $ path ) use ( $ package ) { return sprintf ( $ path , $ package ) ; } , $ paths ) ; return $ paths ; }
Find all the possible locations for a package's configuration.

@param string $package

@return string[]
Find all the possible locations for a package s configuration .