dev-master
9999999-dev
MIT
The Requires
The Development Requires
by Lucas A. de Araújo
v1.0.1
1.0.1.0
MIT
The Requires
The Development Requires
by Lucas A. de Araújo
v1.0.0
1.0.0.0
MIT
The Requires
The Development Requires
by Lucas A. de Araújo
Wallogit.com
2017 © Pedro Peláez
Http compliant error reporting structure for zend framework., (*1)
composer require phphacks/zend-httperrors, (*2)
return [ 'Zend\HttpErrors', 'My\Other\Modules' ];
class MyController
{
private $auth;
public function __construct(AuthorizationService $auth)
{
$this->auth = $auth;
}
public function doSomethingAction()
{
if(!$auth->isAuthorized()) {
throw new HttpUnauthorizedException();
}
}
}
That's just it., (*3)
MIT
MIT
MIT