I want to autoload
Hybridauth external library in my module
name "Account", I have included all libraries in the location
/var/www/ZendSkeletonApplication/module/Account/lib/hybridauth/Hybrid
Also in my module.php
, I have the following namespaces
'Zend\Loader\StandardAutoloader' => array(
'namespaces' => array(
__NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__,
'hybridauth' => __DIR__.'/lib/hybridauth/Hybrid',
),
),
And in /var/www/ZendSkeletonApplication/module/Account/lib/hybridauth/Hybrid Auth.php
file I have put the namespace.
namespace hybridauth;
class Hybrid_Auth {
......
In my controller I have declared the namespace as
use hybridauth\Hybrid_Auth;
But now whenever I make a call to new Hybrid_Auth( $config );
, it shows error unable to load class.
I don't know what I am doing wrong here or weather I am following the correct way to autoload external libs in ZF2
.
Any suggestion or Help !