[Flow] Loading packagist.org libraries correctly

Rens Admiraal rens.admiraal at typo3.org
Fri May 10 02:15:44 CEST 2013


Hi Steffen, 

Afaik only packages which are psr-0 compatible will work. If a package is not you should stick to your current way of working.

Greet,
Rens

Steffen Wickham <steffen at gaming-inc.de>schreef:

>Hello guys,
>
>I'm currently thinking about to use a package from packagist.org called
>"mobiledetect/mobiledetectlib" within my Flow project. I'd already
>imported the package through "composer require" command and it's located
>in the Library directory. So far, so good.
>
>Currently I include the base file and create a new instance manually, as
>the object manager can't find a registered class for it. But how can I
>create an instance of its main class "Mobile_Detect" in the correct way?
>Is it possible through Flow even the lib doesn't use namespaces?
>
>Thanks for your support again!
>
>Greetings
>Steffen
>
>
>_______________________________________________
>Flow mailing list
>Flow at lists.typo3.org
>http://lists.typo3.org/cgi-bin/mailman/listinfo/flow


More information about the Flow mailing list