[FLOW3-general] using libraries via composer

Thomas Mammitzsch thomas at visualworx.de
Fri Nov 30 14:32:28 CET 2012


hi Karsten,

i think it should work, as it seems to work in the TYPO3.Flow Package. I 
just tried it again because because guzzle seems to have to be written 
lower case and also added symfony.event-dispatcher (which comes with 
guzzle) but no luck.

my global *Configuration/Settings.yaml* looks like:

TYPO3:
   Flow:
     object:
       excludeClasses:
         'guzzle.guzzle' : ['.*']
         'symfony.event-dispatcher' : 
['Symfony\\Component\\EventDispatcher\\Tests.*']

regards, Thomas


On 29.11.2012 19:45, Karsten Dambekalns wrote:
> 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
>



More information about the FLOW3-general mailing list