[FLOW3-general] using libraries via composer
Vaclav Janoch
janoch at itplusx.de
Fri Dec 14 18:33:00 CET 2012
Hi,
I have a problem to include some Zend Framework 2 packages in a TYPO3 Flow application using composer. My composer.json looks like that:
{
...
...
"repositories": [
{
"type": "composer",
"url": "http://ci.typo3.robertlemke.net/job/composer-packages/ws/repository/"
},
{
"type": "composer",
"url": "http://packages.zendframework.com/"
}
],
...
...
"require": {
"typo3/flow": "dev-master",
"typo3/welcome": "dev-master",
"zendframework/zend-mail": "2.0.*",
"zendframework/zend-servicemanager": "2.0.*",
"zendframework/zend-di": "2.0.*",
"zendframework/zend-console": "2.0.*"
},
...
...
}
If I call a controller action or just flow in the command line, I get the following error:
>> flow help
Uncaught Exception
Execution of subprocess failed with exitcode "1" and output:
Uncaught Exception
[Semantical Error] The annotation "@configkey" in method
Zend\Code\Generator\ClassGenerator::fromArray() was never imported. Did
you maybe forget to add a "use" statement for this annotation?
More Information
Exception code #0
File
/export/www/zf2.de.dev-vm.local/htdocs/Packages/Libraries/doctrine/common/lib/Doctrine/Common/Annotations/AnnotationException.php
line 52
More Information
Exception code #0
File /export/www/zf2.de.dev-vm.local/htdocs/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Core/Booting/Scripts.php line 543
Exception reference #20121214175029dd4532
Does anyone have an idea?
Regards,
Vaci
-----Ursprüngliche Nachricht-----
Von: flow3-general-bounces at lists.typo3.org [mailto:flow3-general-bounces at lists.typo3.org] Im Auftrag von Karsten Dambekalns
Gesendet: Montag, 3. Dezember 2012 10:41
An: flow3-general at lists.typo3.org
Betreff: Re: [FLOW3-general] using libraries via composer
Hi.
On 30.11.12 14:11, Thomas Mammitzsch wrote:
> that seems to have no effect. Still get Execution of subprocess failed
> with exitcode "255" and output: Fatal error: Cannot redeclare class
> Zend_Log in
> /var/www/myflow/Packages/Libraries/guzzle/guzzle/tests/Guzzle/Tests/Log/Zend_Log.php"
It seems there is more to this issues. See
http://forge.typo3.org/issues/43541 which I just created based on trying
to reproduce your error by requiring Guzzle myself.
Regards,
Karsten
--
Karsten Dambekalns
TYPO3 Core Developer, Neos / Flow Team
TYPO3 .... inspiring people to share!
Get involved: typo3.org
_______________________________________________
FLOW3-general mailing list
FLOW3-general at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
More information about the FLOW3-general
mailing list