Closed ghost closed 11 years ago
I honestly don't use this, so @jhuet or @bgallagher may have to help, but I was able to install successfully:
$ cat composer.json
{
"name": "zendframework/skeleton-application",
"description": "Skeleton Application for ZF2",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"zf2"
],
"minimum-stability": "dev",
"homepage": "http://framework.zend.com/",
"require": {
"php": ">=5.3.3",
"zendframework/zendframework": ">2.1.3",
"socalnick/scn-social-auth": ">1.9.3",
"socalnick/scn-social-auth-doctrine-orm": ">1.2.1"
}
}
$ composer show -i
doctrine/annotations v1.1.1 Docblock Annotations Parser
doctrine/cache dev-master b5716ea Caching library offering an object-oriented API for many cache backends
doctrine/collections dev-master df2138b Collections Abstraction library
doctrine/common dev-master 3506be7 Common Library for Doctrine projects
doctrine/dbal dev-master 1d8d6bc Database Abstraction Layer
doctrine/doctrine-module 0.8.x-dev 1d8fbea Zend Framework 2 Module that provides Doctrine basic functionality required for ORM and ODM modules
doctrine/doctrine-orm-module dev-master e77dd8e Zend Framework 2 Module that provides Doctrine ORM functionality
doctrine/inflector dev-master 8b4b3cc Common String Manipulations with regard to casing and singular/plural rules.
doctrine/lexer dev-master bc0e1f0 Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
doctrine/orm dev-master 59fff4d Object-Relational-Mapper for PHP
hybridauth/hybridauth dev-master 6d89473 Open source social sign on PHP library.
socalnick/scn-social-auth 1.9.4 Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.
socalnick/scn-social-auth-doctrine-orm dev-master 1.3.0 An extension of ScnSocialAuth that provides integration with Doctrine2 ORM.
symfony/console dev-master v2.3.0-BETA1 Symfony Console Component
zendframework/zendframework dev-master d668728 Zend Framework 2
zf-commons/zfc-base v0.1.2 A set of genetic (abstract) classes which are commonly used across multiple modules.
zf-commons/zfc-user 0.1.2 A generic user registration and authentication module for ZF2. Supports Zend\Db and Doctrine2.
zf-commons/zfc-user-doctrine-orm 0.1.1 Doctrine2 ORM storage adapter for ZfcUser.
I don't know exactly what's wrong (i'm dont understand composer very well) but the only way to let it work is to disable ScnSocialAuthDoctrineOrm.
All other modules works well:
"minimum-stability": "dev",
"require": {
"zendframework/zendframework": "dev-master",
"zendframework/zend-developer-tools": "dev-master",
"doctrine/doctrine-orm-module": "0.*",
"zf-commons/zfc-user-doctrine-orm": "dev-master",
"bjyoungblood/bjy-authorize": "dev-master",
"zf-commons/zfc-admin": "dev-master",
"hybridauth/hybridauth": "dev-master",
"kriswallsmith/assetic": "dev-master",
"zfcommons/zfcfacebook": "dev-master",
"twitter/bootstrap": "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",
"slm/locale": "dev-master",
"rwoverdijk/assetmanager": "dev-master",
"zendexperts/ze-theme": "dev-master",
"imagine/Imagine": "dev-master",
"speckcommerce/speck-imageuploader": "dev-master",
"dino/dompdf-module": "dev-cli",
"blanchonvincent/SimpleMemoryShared": "dev-master",
"akrabat/akrabat-session": "dev-master",
"waltertamboer/wtrating": "dev-master",
"zendframework/zftool": "dev-master",
"blanchonvincent/cdn-light": "dev-master",
"bedeabza/bdz-html-email": "dev-master",
"firephp/firephp-core": "dev-master",
"netglue/zf2-log-module": "dev-master",
"jhuet/zdt-logger-module": "dev-master",
"soflomo/log": "dev-master",
"juriansluiman/slm-queue-doctrine": "dev-master",
"ghislainf/geonames-server": "dev-master",
"ocramius/ocra-cached-view-resolver": "dev-master",
"stroker/cache": "dev-master",
"thadafinser/zfc-datagrid": "dev-master",
"doctrine/doctrine-mongo-odm-module": "dev-master",
"zf-commons/zfc-user-doctrine-mongo-odm": "dev-master",
"mabuzagu/bjy-authorize-doctrine-mongo-odm-module": "dev-master"
},
But when i want to add ScnSocialAuthDoctrineOrm:
Problem 1
I'm no expert but it looks like the problem is around resolving ZF2 itself to a version. Have you run "./composer.phar update" recently?
The reason I ask is this line: "zf-commons/zfc-user-doctrine-orm 0.1.1 requires zendframework/zendframework 2.1.* -> satisfiable..." The 2.1.* dependency in ZfcUserDoctrineORM was removed here https://github.com/ZF-Commons/ZfcUserDoctrineORM/commit/08be7b2a5e1ee31a3907582261c113531d2bf964 for the 0.1.1 tag
You should remove the modules that are child dependencies of other packages and allow composer to handle the resolution itself. e.g. remove "doctrine/doctrine-orm-module": "0.*", "zf-commons/zfc-user-doctrine-orm": "dev-master", "zendframework/zendframework": "dev-master", "hybridauth/hybridauth": "dev-master",
and instead just add "socalnick/scn-social-auth-doctrine-orm": "1.*"
As a result of this doctrine, scnauth, zfcuser, zfcbase, zf, hybrid auth, etc will be installed. Also a good idea to try and not use dev-master where possible and instead use tags/versions with wildcards.
Hope that helps somewhat.
Problem 1