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

Marc Neuhaus apocalip at gmail.com
Thu Jun 5 11:05:00 CEST 2014


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
>


More information about the Flow mailing list