[FLOW3-general] using libraries via composer

Karsten Dambekalns karsten at typo3.org
Thu Nov 29 19:45:13 CET 2012


Hi.

On 28.11.12 14:30, Thomas Mammitzsch wrote:
> i just tried to add guzzle to my flow installation. I added it to
> composer.json and installed it. When i execute './flow help' i get this
> error message: "PHP Fatal error:  Cannot redeclare class Zend_Log in
> /var/www/myflow/Packages/Libraries/guzzle/guzzle/tests/Guzzle/Tests/Log/Zend_Log.php
> on line 30"

Flow is reflecting all classes in the package. The tests should not be
reflected, and you are probably not using AOP or DI *on* Guzzle itself
so try to add this to *Configuration/Settings.yaml*:

TYPO3:
  Flow:
    object:
      excludeClasses:
        'Guzzle.Guzzle': ['.*']


Regards,
Karsten
-- 
Karsten Dambekalns
TYPO3 Core Developer, Neos / Flow Team

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the FLOW3-general mailing list