PHP Class Symfony\Installer\NewCommand

Author: Christophe Coevoet ([email protected])
Author: Javier Eguiluz ([email protected])
Inheritance: extends DownloadCommand
Show file Open project: symfony/symfony-installer

Protected Methods

Method Description
checkSymfonyVersionIsInstallable ( ) Checks whether the given Symfony version is installable by the installer.
cleanUp ( ) Removes all the temporary files and directories created to download the project and removes Symfony-related files that don't make sense in a proprietary project.
configure ( )
displayInstallationResult ( ) It displays the message with the result of installing Symfony and provides some pointers to the user.
dumpReadmeFile ( ) Dump a basic README.md file.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
getDownloadedApplicationType ( )
getRemoteFileUrl ( )
initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
updateComposerConfig ( ) Updates the composer.json file to provide better values for some of the default configuration values.
updateParameters ( ) Updates the Symfony parameters.yml file to replace default configuration values with better generated values.

Method Details

checkSymfonyVersionIsInstallable() protected method

Due to the changes introduced in the Icu/Intl components (see http://symfony.com/blog/new-in-symfony-2-6-farewell-to-icu-component) not all the previous Symfony versions are installable by the installer. The rules to decide if the version is installable are as follows: - 2.0, 2.1, 2.2 and 2.4 cannot be installed because they are unmaintained. - 2.3 can be installed starting from version 2.3.21 (inclusive) - 2.5 can be installed starting from version 2.5.6 (inclusive) - 2.6, 2.7, 2.8 and 2.9 can be installed regardless the version.

cleanUp() protected method

Removes all the temporary files and directories created to download the project and removes Symfony-related files that don't make sense in a proprietary project.
protected cleanUp ( )

configure() protected method

protected configure ( )

displayInstallationResult() protected method

It displays the message with the result of installing Symfony and provides some pointers to the user.

dumpReadmeFile() protected method

Dump a basic README.md file.
protected dumpReadmeFile ( )

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

getDownloadedApplicationType() protected method

getRemoteFileUrl() protected method

protected getRemoteFileUrl ( )

initialize() protected method

protected initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

updateComposerConfig() protected method

Updates the composer.json file to provide better values for some of the default configuration values.
protected updateComposerConfig ( )

updateParameters() protected method

Updates the Symfony parameters.yml file to replace default configuration values with better generated values.
protected updateParameters ( )