-
Notifications
You must be signed in to change notification settings - Fork 114
Use 'server:start' instead of 'server:run' when possible #284
Conversation
Should be deal with Symfony Version also ? because this command does not exist in older SF version. |
@lyrixx you are right! I've improved the condition to check that we're using Sf 2.6.0 or higher. Thanks! |
@@ -145,11 +145,13 @@ private function displayInstallationResult() | |||
)); | |||
} | |||
|
|||
$serverRunCommand = version_compare($this->version, '2.6.0', '>=') && extension_loaded('pcntl') ? 'server:start' : 'server:run'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this for the demo application?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why should it be different for the demo app 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You cannot select a version of the demo application, can you? And the one that is going to be installed is using Symfony 3 already, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are so right!! I'm sorry for this mistake. It's now fixed. Thanks!
@@ -256,14 +256,15 @@ protected function displayInstallationResult() | |||
} | |||
|
|||
$consoleDir = ($this->isSymfony3() ? 'bin' : 'app'); | |||
$serverRunCommand = version_compare($this->version, '2.6.0', '>=') && extension_loaded('pcntl') ? 'server:start' : 'server:run'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to check for HHVM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that we should care about HHVM anymore. "Nobody" is using it.
server:start
is a better option ... but it's not always possible to run it.