Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Minor tweaks for the previous merge #225

Merged
merged 1 commit into from
Dec 10, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions src/Symfony/Installer/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

/**
* This is main Symfony Installer console application class.
*
* @author Jerzy Zawadzki <[email protected]>
*/
class Application extends ConsoleApplication
{
Expand All @@ -28,15 +30,12 @@ public function doRun(InputInterface $input, OutputInterface $output)

if ($this->isInPharMode() && in_array($commandName, array('new', 'demo'), true)) {
if (!$this->checkIfInstallerIsUpdated()) {
$output->writeln(
sprintf(
" <comment>[WARNING]</comment> You are using outdated version of Symfony Installer.\n".
' It is recommended to update it by running "%s selfupdate" to get the latest version.',
$_SERVER['PHP_SELF']
)
);
$output->writeln(sprintf(
" <comment>[WARNING]</comment> Your Symfony Installer version is outdated.\n".
' Execute the command "%s selfupdate" to get the latest version.',
$_SERVER['PHP_SELF']
));
}

}

return parent::doRun($input, $output);
Expand All @@ -62,5 +61,4 @@ private function checkIfInstallerIsUpdated()

return false;
}

}