rayamedia / yima-authorize
There is no license information available for the latest version (dev-master) of this package.
Package info
github.com/YiMAproject/yimaAuthorize
Type:yima-core-module
pkg:composer/rayamedia/yima-authorize
dev-master
2015-06-18 11:19 UTC
Requires
- php: >=5.3.3
- poirot/authsystem: dev-master
- poirot/core: dev-master
- rayamedia/yima-plugin-installer: dev-master
This package is auto-updated.
Last update: 2026-02-24 07:33:23 UTC
README
[zend framework2, zf2] Authentication
Login User Programaticly
/** @var AuthService $auth */ $auth = $this->authorize('yima_authorize.sample'); $auth->getAuthAdapter()->identity()->setUserIdentity('ehsan'); $auth->getAuthAdapter()->identity()->login(); if (!$auth->isAllowed(null, new PermResource(['route_name' => 'contact']))) $auth->riseException(); die($auth->getAuthAdapter()->identity()->hasAuthenticated());