[Flow] Loading packagist.org libraries correctly

Steffen Wickham steffen at gaming-inc.de
Fri May 10 01:40:53 CEST 2013


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




More information about the Flow mailing list