Issue Bug Closed

#86753Call to undefined method Symfony\Component\Console\Command\Command::setHidden in TYPO3\CMS\Extbase\Command\CoreCommand

Oliver Klee 10/26/18, 14:58 updated 05/07/19, 12:15

Description

The configure method calls $this->setHidden:

/**
 * Configure the command, since this is a command
*/
protected function configure()
{
$this->setHidden(true);
}

The setHidden method was added in symfony/console 3.2 and thus is not available in 2.7 (and neither in 3.0 or 3.1), leading to a crash.

This problem occurs if extbase is installed as a Composer dependency with the —prefer-lowest Composer option (which I use to check that with the lowest dependencies of my projects, everything still works).

The solution is to require symfony/console ^3.2 (or ^4.0).

This problem only affects 8.7, as in master, symfony/console ^4.1 is required, and in 7.6, the Core Command class does not exist yet.

Reviews 1