Created
December 11, 2014 15:57
-
-
Save jderusse/f06181623c1d32f6f02d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
<<<CONFIG | |
packages: | |
- "symfony/symfony-installer: *" | |
CONFIG; | |
if (PHP_VERSION_ID < 50400) { | |
file_put_contents('php://stderr', sprintf( | |
"Symfony Installer requires PHP 5.4 version or higher and your system has\n". | |
"PHP %s version installed.\n\n". | |
"To solve this issue, upgrade your PHP installation or install Symfony manually\n". | |
"executing the following command:\n\n". | |
"composer create-project symfony/framework-standard-edition <project-name> <symfony-version>\n\n", | |
PHP_VERSION | |
)); | |
exit(1); | |
} | |
$appVersion = '0.5.0-DEV'; | |
$app = new Symfony\Component\Console\Application('Symfony Installer', $appVersion); | |
$app->add(new Symfony\Installer\AboutCommand($appVersion)); | |
$app->add(new Symfony\Installer\NewCommand()); | |
$app->setDefaultCommand('about'); | |
$app->run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment