hearstuk / zf1-component-auth
从Zend Framework 1.12中抽象出来的Zend_Auth组件,以便与composer一起使用。
1.1
2013-09-19 16:25 UTC
Requires
- php: >=5.3.0
- hearstuk/zf1-components-base: ~1.2
Requires (Dev)
- phpunit/phpunit: 3.7.20
This package is not auto-updated.
Last update: 2024-09-23 15:46:07 UTC
README
从Zend Framework 1.12中抽象出来的Zend_Auth组件,以便与composer一起使用。
存储
默认情况下,Zend_Auth使用Zend_Session作为其持久化存储,但该包并未将Zend_Session配置为依赖项。要使用Zend_Session,请务必与该包一起要求它。
"require": {
"hearstuk/zf1-component-auth": "*",
"hearstuk/zf1-component-session": "*"
}
您可以选择通过实现Zend_Auth_Storage_Interface来编写自己的持久化存储类。
适配器
为Zend_Auth未配置默认认证适配器,因此您需要自行配置。本包中提供的每个适配器都有自己的要求 - 例如,Zend_Auth_Adapter_DbTable需要Zend_Db_Table。您需要使用composer包括这些依赖项来使用这些适配器。
您可能更喜欢通过实现Zend_Auth_Adapter_Interface来编写自己的适配器。