[Flow] \TYPO3\Flow\Package\PackageManager::getAvailablePackages does not return anything
Chris Wolff - AERTiCKET AG
cwolff at aer.de
Thu Jun 5 11:16:33 CEST 2014
Hi Maybe you should write a bug report.
As this is very unexpected behaviour.
Regards chris
-----Ursprüngliche Nachricht-----
Von: flow-bounces at lists.typo3.org [mailto:flow-bounces at lists.typo3.org] Im Auftrag von Christian Loock
Gesendet: Donnerstag, 5. Juni 2014 11:05
An: apocalip at gmail.com; TYPO3 Flow mailing list
Betreff: Re: [Flow] \TYPO3\Flow\Package\PackageManager::getAvailablePackages does not return anything
Hi,
that was it. Very odd. Thanks!
On 05.06.2014 11:05, Marc Neuhaus wrote:
> Hey,
>
> i seem to remember, that you have to inject it using an
> injectPackageManger method, it somehow doesn't initialize using the
> inject annotation. Didn't find time to dig into why that is so far.
>
> Example:
> https://github.com/mneuhaus/Famelo.Bean/blob/master/Classes/Famelo/Bea
> n/Command/BeanCommandController.php#L31-L47
>
> Cheers
> Marc
>
>
> 2014-06-05 10:58 GMT+02:00 Christian Loock <chl at vkf-renzel.de>:
>
>> Hi,
>>
>> I want to get a list of all Packages inside my Flow App. I tried
>> using \TYPO3\Flow\Package\PackageManager::getAvailablePackages (like
>> Flow's package Command controller does), but all I get is an empty array.
>>
>> Is there something special to consider about the PackageManager?
>>
>> --
>> Christian Loock
>> Web Developer
>> Renzel Agentur
>> www.renzel-agentur.de
>>
>> _______________________________________________
>> Flow mailing list
>> Flow at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>>
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
--
Christian Loock
Web Developer
Renzel Agentur
www.renzel-agentur.de
_______________________________________________
Flow mailing list
Flow at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list