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 #1

Updated by Gerrit Code Review over 5 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

Actions #2

Updated by Gerrit Code Review over 5 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

Actions #3

Updated by Oliver Klee over 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF