public function getClient()
 {
     $me = new \ReverseOAuth2\Client\Google();
     $cf = Bootstrap::getServiceManager()->get('Config');
     $me->setOptions(new \ReverseOAuth2\ClientOptions($cf['reverseoauth2']['google']));
     return $me;
 }
        $vendorPath = static::findParentPath('vendor');
        if (is_readable($vendorPath . '/autoload.php')) {
            $loader = (include $vendorPath . '/autoload.php');
        }
        $zf2Path = getenv('ZF2_PATH');
        if (!$zf2Path) {
            $zf2Path = "../../zendframework/library";
        }
        if (isset($loader)) {
            $loader->add('Zend', $zf2Path . '/Zend');
        } else {
            include $zf2Path . '/Zend/Loader/AutoloaderFactory.php';
            AutoloaderFactory::factory(array('Zend\\Loader\\StandardAutoloader' => array('autoregister_zf' => true, 'namespaces' => array(__NAMESPACE__ => __DIR__ . '/' . __NAMESPACE__))));
        }
    }
    protected static function findParentPath($path)
    {
        $dir = __DIR__;
        $previousDir = '.';
        while (!is_dir($dir . '/' . $path)) {
            $dir = dirname($dir);
            if ($previousDir === $dir) {
                return false;
            }
            $previousDir = $dir;
        }
        return $dir . '/' . $path;
    }
}
Bootstrap::init();