[Flow] \TYPO3\Flow\Package\PackageManager::getAvailablePackages does not return anything

Christian Loock chl at vkf-renzel.de
Thu Jun 5 11:04:42 CEST 2014


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/Bean/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



More information about the Flow mailing list