Releases: SidRoberts/phalcon-authmiddleware
Releases · SidRoberts/phalcon-authmiddleware
4.0.0
3.0.0
Added support for Phalcon version 4.
2.0.0
Several middleware annotations can now be added to controllers:
use Phalcon\Mvc\Controller;
class IndexController extends Controller
{
/**
* @AuthMiddleware("Example\AuthMiddleware\MustBeLoggedIn")
* @AuthMiddleware("Example\AuthMiddleware\MustBeAdmin")
*/
public function indexAction()
{
// ...
}
}
All middleware classes must return true
in order for the action to be processed.
Modernised the code to work better with PHP 7.
v1.0.0
Updated Composer command in README.