src/Eccube2/Composer/Installers/Installer.php
protected function getLocationPattern($frameworkType)
    {
        $pattern = false;
        if (!empty($this->supportedTypes[$frameworkType])) {
            $frameworkClass = 'Eccube2\\Composer\\Installers\\' . $this->supportedTypes[$frameworkType];
            /** @var BaseInstaller $framework */
            $framework = new $frameworkClass(null, $this->composer, $this->getIO());
            $locations = array_keys($framework->getLocations());
            $pattern = $locations ? '(' . implode('|', $locations) . ')' : false;
        }

        return $pattern ? $pattern : '(\w+)';
    }
protected function getLocationPattern($frameworkType)
    {
        $pattern = false;
        if (!empty($this->supportedTypes[$frameworkType])) {
            $frameworkClass = 'Eccube2\\Composer\\Installers\\' . $this->supportedTypes[$frameworkType];
            /** @var BaseInstaller $framework */
            $framework = new $frameworkClass(null, $this->composer, $this->getIO());
            $locations = array_keys($framework->getLocations());
            $pattern = $locations ? '(' . implode('|', $locations) . ')' : false;
        }

        return $pattern ? $pattern : '(\w+)';
    }
protected function getLocationPattern ( $ frameworkType ) { $ pattern = false ; if ( ! empty ( $ this -> supportedTypes [ $ frameworkType ] ) ) { $ frameworkClass = 'Eccube2\\Composer\\Installers\\' . $ this -> supportedTypes [ $ frameworkType ] ; /** @var BaseInstaller $framework */ $ framework = new $ frameworkClass ( null , $ this -> composer , $ this -> getIO ( ) ) ; $ locations = array_keys ( $ framework -> getLocations ( ) ) ; $ pattern = $ locations ? '(' . implode ( '|' , $ locations ) . ')' : false ; } return $ pattern ? $ pattern : '(\w+)' ; }
Get the second part of the regular expression to check for support of a
package type

@param  string $frameworkType
@return string
Get the second part of the regular expression to check for support of a package type