Composer\Installers\Installer::getLocationPattern PHP Метод

getLocationPattern() защищенный Метод

Get the second part of the regular expression to check for support of a package type
protected getLocationPattern ( string $frameworkType ) : string
$frameworkType string
Результат string
    protected function getLocationPattern($frameworkType)
    {
        $pattern = false;
        if (!empty($this->supportedTypes[$frameworkType])) {
            $frameworkClass = '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 ?: '(\\w+)';
    }