mouf/security.userservice-splash
最新稳定版本:v10.0.0
Composer 安装命令:
composer require mouf/security.userservice-splash
包简介
This package contains a set of class to bind the Splash MVC framework (>=v4.0) with the UserService component. It features: a @Logged annotation to restrict access to logged users only.
关键字:
README 文档
README
This package is part of the Mouf PHP framework and contains the @Logged annotation to bind with Splash to the UserService.
The @Logged annotation
This filter can be used in any action. If you put this annotation, the user will be denied access if he is not logged in.
/** * A sample default action that requires to be logged. * * @URL ("/homepage") * @Logged */ public function index() { ... }
/** * A sample default action that requires to be logged. * * @URL ("/homepage") * @Logged(middlewareName = "myUnauthorizedMiddleware") */ public function index() { ... }
统计信息
- 总下载量: 194.06k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-10-16