An open API service indexing awesome lists of open source software.

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.

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() { ... }
```