This bundle provides an opportunity to refresh user roles after its changing without re-authentication
1. Install this bundle using composer
$ composer require 11ya/actual-user-bundle:dev-master
or add the package to your composer.json
file directly.
2. Register the bundle in app/AppKernel.php
$bundles = array(
// ...
new Ilya\ActualUserBundle\IlyaActualUserBundle(),
);
- Implement ActualUserInterface in your User class.
- Modify security config to use custom provider service
- Enjoy!