mouf/security.userservice-splash 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 7
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-10-16