You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're running this globally with Composer it's currently using symfony/console 3.x. SilverStripe 4.x uses symfony/console 4.x if you have Behat installed. For some reason parts of this API are autoloaded before the global console library, so you end up with this error when running ssconsole:
ERROR [Emergency]: Uncaught Error: Call to undefined method Symfony\Component\Console\Helper\QuestionHelper::getInputStream()
IN GET /
Line 911 in /Users/robbieaverill/.composer/vendor/symfony/console/Application.php
Source
======
902: $inputStream = null;
903:
904: if ($input instanceof StreamableInputInterface) {
905: $inputStream = $input->getStream();
906: }
907:
908: // This check ensures that calling QuestionHelper::setInputStream() works
909: // To be removed in 4.0 (in the same time as QuestionHelper::setInputStream)
910: if (!$inputStream && $this->getHelperSet()->has('question')) {
* 911: $inputStream = $this->getHelperSet()->get('question')->getInputStream(false);
912: }
913:
914: if (!@posix_isatty($inputStream) && false === getenv('SHELL_INTERACTIVE')) {
915: $input->setInteractive(false);
916: }
917: }
Trace
=====
Symfony\Component\Console\Application->configureIO(, Symfony\Component\Console\Output\ConsoleOutput)
Application.php:145
Symfony\Component\Console\Application->run()
Scaffold.php:82
SilverLeague\Console\Framework\Scaffold->run()
ssconsole:24
We should probably update to console 4.x. There may still be conflicts with other libraries (like silverstripe/cow) which require symfony/console 3.x, but they can deal with that.
The text was updated successfully, but these errors were encountered:
If you're running this globally with Composer it's currently using symfony/console 3.x. SilverStripe 4.x uses symfony/console 4.x if you have Behat installed. For some reason parts of this API are autoloaded before the global console library, so you end up with this error when running
ssconsole
:We should probably update to console 4.x. There may still be conflicts with other libraries (like silverstripe/cow) which require symfony/console 3.x, but they can deal with that.
The text was updated successfully, but these errors were encountered: