SocalNick / ScnSocialAuthDoctrineORM

An extension of ScnSocialAuth that provides integration with Doctrine ORM
BSD 3-Clause "New" or "Revised" License
8 stars 20 forks source link

github account needed ? #2

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hi there, When installing by composer, my rsa passphrase and my github user/password account are asked.

SocalNick commented 11 years ago

Sorry - can you try again. I submitted the wrong url to Packagist

ghost commented 11 years ago

Yeah it works now but i get Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (ScnSocialAuthDoctrineORM) could not be initialized.'

SocalNick commented 11 years ago

@jhuet could you possibly help debug? I'm not going to be able to get to this today...

jhuet commented 11 years ago

I've been doing different tests but have always been able to load the module with the autoloader. I couldn't try with a fresh install because of some GitHub problems right now but i will later or tomorrow.

That said, could you post your composer.json file please @booradleys ?

jhuet commented 11 years ago

I tried with this simple one and it worked :

{
    "minimum-stability": "dev",
    "require": {
        "php": ">=5.3.3",
        "socalnick/scn-social-auth-doctrine-orm": "dev-master"
    }
}
jhuet commented 11 years ago

Okay, i just did it from a totally fresh install of the ZendSkeleton with only the above composer file and the default config files and it worked.

ghost commented 11 years ago

Here is my composer.json:

{ "name": "Appli", "description": "Appli application", "license": "BSD-3-Clause", "keywords": [ "framework", "zf2" ], "homepage": "http://localhost/", "autoload": { "psr-0": { "Application": "module/Application/src" } },
"minimum-stability": "dev", "require": { "zendframework/zendframework": "dev-master", "zendframework/zend-developer-tools": "dev-master", "doctrine/doctrine-orm-module": "dev-master", "zf-commons/zfc-base": "dev-master", "zf-commons/zfc-user": "dev-master", "zf-commons/zfc-user-doctrine-orm": "dev-master", "hybridauth/hybridauth": "dev-master", "socalnick/scn-social-auth": "dev-master", "socalnick/scn-social-auth-doctrine-orm": "dev-master", "bjyoungblood/bjy-authorize": "dev-master", "kriswallsmith/assetic": "dev-master", "zf-commons/zfcfacebook": "dev-master", "evandotpro/edpsuperluminal": "dev-master", "spiffy/spiffy-security": "dev-master", "jms/serializer-bundle": "dev-master", "mwillbanks/zfc-twitter-bootstrap": "dev-master", "zf-commons/zfc-twig": "dev-master", "gedmo/doctrine-extensions": "dev-master", "beberlei/DoctrineExtensions": "dev-master", "leafo/lessphp": "dev-master", "leafo/scssphp": "dev-master", "ptachoire/cssembed": "dev-master", "zf-commons/zfc-admin": "dev-master", "danielss89/zfc-user-admin": "dev-master", "slm/locale": "dev-master", "rwoverdijk/assetmanager": "dev-master", "cgm/config-admin": "dev-master", "dasprid/bacon": "dev-master", "zendexperts/ze-theme": "dev-master", "imagine/Imagine": "dev-master" }, "suggest": {

},
"repositories": [
    {
        "type": "package",
        "package": {
            "version": "dev-master",
            "name": "dasprid/bacon",
            "source": {
                "type": "git",
                "url": "https://github.com/DASPRiD/Bacon.git",
                "reference": "master"
            } 
        }
    },
    {
        "type": "package",
        "package": {
            "version": "dev-master",
            "name": "danielss89/zfc-user-admin",
            "source": {
                "type": "git",
                "url": "https://github.com/Danielss89/ZfcUserAdmin.git",
                "reference": "master"
            } 
        }
    },
    {
        "type": "package",
        "package": {
            "version": "dev-master",
            "name": "zf-commons/zfcfacebook",
            "source": {
                "type": "git",
                "url": "https://github.com/ZF-Commons/ZfcFacebook",
                "reference": "master"
            } 
        }
    },
    {
        "type": "package",
        "package": {
            "version": "dev-master",
            "name": "evandotpro/edpsuperluminal",
            "source": {
                "type": "git",
                "url": "https://github.com/EvanDotPro/EdpSuperluminal",
                "reference": "master"
            } 
        }
    },      
    {
        "type": "package",
        "package": {
            "version": "dev-master",
            "name": "mwillbanks/zfc-twitter-bootstrap",
            "source": {
                "type": "git",
                "url": "https://github.com/mwillbanks/ZfcTwitterBootstrap",
                "reference": "master"
            } 
        }
    },
    {
        "type": "package",
        "package": {
            "version": "dev-master",
            "name": "blanchonvincent/zf2-lazy-loading-module",
            "source": {
                "type": "git",
                "url": "https://github.com/blanchonvincent/zf2-lazy-loading-module",
                "reference": "master"
            } 
        }
    }       
]

}

jhuet commented 11 years ago

Hmm, that's weird, i just tried with yours and i don't have your problem... Do you have the module code correctly downloaded in vendor/socalnick/scn-social-auth-doctrine-orm/ ?

ghost commented 11 years ago

I added this line '../vendor/socalnick', to my module_paths and it works!

'module_paths' => array( 'module', 'library', '../vendor', '../vendor/mwillbanks', '../vendor/blanchonvincent', '../vendor/evandotpro', '../vendor/zf-commons', '../vendor/cdli', '../vendor/danielss89',
'../vendor/socalnick',
),

Why some of modules path need to be added here while others don' t ?

ghost commented 11 years ago

Now i've got this notice (into hybridauth library) Notice: Undefined index: HA::STORE in vendor\hybridauth\hybridauth\hybridauth\Hybrid\Storage.php on line 43

ghost commented 11 years ago

Whatever, Thank you very very much for you great job on this module guys @jhuet @SocalNick !

jhuet commented 11 years ago

You don't seem to have a regular Zend application structure as your module paths start with ../ but i'm not sure how it affects the autoloading exactly. Here's how's mine looking like :

'module_paths' => array(
    './module',
    './vendor',
),

I'm curious to see the content of your init_autoload.php in the root directory. That file should be included by public/index.php before running the application.

jhuet commented 11 years ago

Oops, i was replying at the same time :) If it's ok for you, you may close the issue.