Bug #86753
closedCall to undefined method Symfony\Component\Console\Command\Command::setHidden in TYPO3\CMS\Extbase\Command\CoreCommand
100%
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.
Updated by Gerrit Code Review about 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58711
Updated by Gerrit Code Review about 6 years ago
Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58711
Updated by Oliver Klee about 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 278d6808c980ac7eec93311806a6da3affcbe1ab.