安装yii2-adldap-module

时间:2016-01-19 10:18:16

标签: yii2 adldap

我正在尝试按照https://github.com/edvler/yii2-adldap-module中的步骤安装yii2-adldap-module。当我尝试按php composer.phar require edvlerblog/yii2-adldap-module "v1.0.0"安装它时,我收到以下错误

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for edvlerblog/yii2-adldap-module v1.0.0 -> satisfiable by edvlerblog/yii2-adldap-module[v1.0.0].
    - edvlerblog/yii2-adldap-module v1.0.0 requires adldap/adldap v4.0-stable -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

如何为yii2安装adldap?有没有其他方式或扩展仍在使用?

3 个答案:

答案 0 :(得分:1)

{
  "extends": "../tsconfig.json",
  "compilerOptions": {
    "outDir": "../out-tsc/app",
    "baseUrl": "./",
    "module": "es2015",
    "types": ["gapi.auth2"]
  },
  "exclude": [
    "test.ts",
    "**/*.spec.ts"
  ]
}

将此添加到composer.json并运行"edvlerblog/yii2-adldap-module": "^4.0.0"

答案 1 :(得分:0)

扩展程序存在问题 - take a look

基本上,不再维护adldap模块,因此需要使用adldap模块的分支更改Yii2模块的依赖关系。

你可以通过分支Yii2模块解决这个问题,甚至可能提交一个拉取请求来修复它。 ;)

答案 2 :(得分:0)

edvler/yii2-adldap-module只是一个代理类。由于不再维护adldap/adLDAP包,因此存在一些错误。看起来不再维护edvler扩展。

您可以使用Adldap2/Adldap2包重写它或使用我的扩展程序:https://github.com/alexeevdv/yii2-adldap