https://github.com/thecodingmachine/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.
https://github.com/thecodingmachine/security.userservice-splash
Last synced: about 1 year ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/thecodingmachine/security.userservice-splash
- Owner: thecodingmachine
- Created: 2012-09-09T09:38:16.000Z (almost 14 years ago)
- Default Branch: 10.0
- Last Pushed: 2023-02-01T09:39:20.000Z (over 3 years ago)
- Last Synced: 2025-04-01T18:02:13.347Z (about 1 year ago)
- Language: PHP
- Size: 26.4 KB
- Stars: 0
- Watchers: 8
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Integrating the "userservice" with Splash
=========================================
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.
```php
/**
* A sample default action that requires to be logged.
*
* @URL ("/homepage")
* @Logged
*/
public function index() { ... }
```
```php
/**
* A sample default action that requires to be logged.
*
* @URL ("/homepage")
* @Logged(middlewareName = "myUnauthorizedMiddleware")
*/
public function index() { ... }
```