Project

General

Profile

Actions

Bug #86753

closed

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

Added by Oliver Klee over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Extbase
Target version:
-
Start date:
2018-10-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF