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.
Installs: 192 236
Dependents: 5
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 5
Open Issues: 0
Requires
- php: >=7.1
- mouf/security.userservice: ^2.1.0 || ^3
- thecodingmachine/funky: ^1
- thecodingmachine/splash-router: ^10
This package is auto-updated.
Last update: 2024-10-29 13:23:39 UTC
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() { ... }