Task #41832

TYPO3 Flow Base Distribution - Bug #41843: Composer and rename issues (umbrella issue)

Improve error handling for incompatible packages

Added by Bastian Waidelich almost 9 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Should have
Category:
Package
Target version:
-
Start date:
2012-10-10
Due date:
% Done:

0%

Estimated time:
Sprint:
PHP Version:
Has patch:
No
Complexity:

Description

Installing packages that are not PSR-0 compatible currently produces some very unexpected errors:

For example when installing ruflin/Elastica from packagist I get following fatal error:

Execution of subprocess failed with exitcode "255" and output:

Fatal error: Cannot redeclare class Elastica_Client in
Packages/Vendor/ruflin/Elastica/lib/Elastica/Client.php
on line 11

Following line in my distributions Settings.yaml solved it for me (but it took me a while ;)

TYPO3:
  Flow:
    object:
      excludeClasses:
       'ruflin.Elastica' : ['Elastica\\.*']

When trying to install/use a Flow package that has not yet been converted to be PSR-0 compliant, I also get a fatal error that's very hard to comprehend:

Uncaught Exception
  Execution of subprocess failed with exitcode "1" and output:

  Uncaught Exception
    Warning: Invalid argument supplied for foreach() in

  Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Object/Configuration/ConfigurationBuilder.php
    line 362

  More Information
    Exception code      #1

[...]

More Information
  Exception code      #0

[....]

Related issues

Related to TYPO3 Flow Base Distribution - Bug #41809: ConfigurationBuilder throws an error on classes without methodsResolvedRens Admiraal2012-10-09

Actions

Also available in: Atom PDF