Issue Bug Closed

#56660Interface incompatibility - PackageManager initialize() - backport from Flow

Tymoteusz Motylewski 03/07/14, 16:33 updated 10/02/18, 12:03

Description

PackageManagerInterface contains following method declaration:
public function initialize(\TYPO3\Flow\Core\Bootstrap $bootstrap);

however in the PackageManager (which implements \TYPO3\Flow\Package\PackageManagerInterface)
it is implemented like this:
public function initialize(\TYPO3\Flow\Core\Bootstrap $bootstrap, $packagesBasePath = FLOW_PATH_PACKAGES, $packageStatesPathAndFilename = ‘’) {

this is wrong and will fatal on some versions of php, see http://php.net/manual/en/language.oop5.interfaces.php
“The class implementing the interface must use the exact same method signatures as are defined in the interface. Not doing so will result in a fatal error.”

The issue was aready solved in Flow, see
http://forge.typo3.org/issues/56409

So we just need to backport the patch.

Reviews 2