Symfony\Installer\DownloadCommand::getInstalledSymfonyVersion PHP 메소드

getInstalledSymfonyVersion() 보호된 메소드

Returns the full Symfony version number of the project by getting it from the composer.lock file.
protected getInstalledSymfonyVersion ( ) : string
리턴 string The installed Symfony version
    protected function getInstalledSymfonyVersion()
    {
        $symfonyVersion = $this->composerManager->getPackageVersion('symfony/symfony');
        if (!empty($symfonyVersion) && 'v' === substr($symfonyVersion, 0, 1)) {
            return substr($symfonyVersion, 1);
        }
        return $symfonyVersion;
    }