Task #41832
Bug #41843: Composer and rename issues (umbrella issue)
Improve error handling for incompatible packages
Status: | New | Start date: | 2012-10-10 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Christian Jul Jensen | % Done: | 0% |
|
Category: | Package | |||
Target version: | - | |||
Sprint: | Has patch: | No | ||
PHP Version: | 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 ;)
1TYPO3: 2 Flow: 3 object: 4 excludeClasses: 5 '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
History
#1 Updated by Bastian Waidelich almost 3 years ago
- Category set to Package
- Assigned To set to Christian Jul Jensen
#2 Updated by Karsten Dambekalns almost 3 years ago
- Parent task set to #41843