Comments (3)
This feature is already implemented in new version of ZfcRbac (check the refactor PR).
It will be merged once ZF 2.3 is out :).
Envoyé de mon iPhone
Le 20 nov. 2013 à 01:44, Aaron Weatherall [email protected] a écrit :
Hey team,
I'm trying to makes some modifications to ZfcRbac so that it redirects to login on a 403 error but can't seem to make it happen. I had thought that I could fire an event on
public function onBootstrap(mvcEvent $e)
{
$sharedEvents = $e->getApplication()->getEventManager();
$sharedEvents->attach('ZfcRbac', 'dispatch.error', 'doStuff', 100);
}
But this doesn't seem to work. Is there an easier solution, or could you point me towards some code to make this happen?—
Reply to this email directly or view it on GitHub.
from zfc-rbac.
But yes as a current work around you can do that. However you don't need to register against the shared manager.
Envoyé de mon iPhone
Le 20 nov. 2013 à 01:44, Aaron Weatherall [email protected] a écrit :
Hey team,
I'm trying to makes some modifications to ZfcRbac so that it redirects to login on a 403 error but can't seem to make it happen. I had thought that I could fire an event on
public function onBootstrap(mvcEvent $e)
{
$sharedEvents = $e->getApplication()->getEventManager();
$sharedEvents->attach('ZfcRbac', 'dispatch.error', 'doStuff', 100);
}
But this doesn't seem to work. Is there an easier solution, or could you point me towards some code to make this happen?—
Reply to this email directly or view it on GitHub.
from zfc-rbac.
Hi,
I'm closing this now, as it will be officially supported in next version (please check the "refactor" branch).
from zfc-rbac.
Related Issues (20)
- Tag stable version for ZF3 compat HOT 6
- Looking for a new maintainer(s) HOT 5
- Missing use statement in ZfcRbac\Initializer\AuthorizationServiceInitializer HOT 1
- RedirectStrategy doesn't work with "ZF3" Eventmanager HOT 8
- RedirectStrategy + zf3 HOT 8
- Future HOT 23
- Very strange session regeneration issue when using ZfcUser with ZfcRbac HOT 3
- Fllow the cookbook I get a problem not fund the authorizationservice HOT 3
- Unable to resolve service "Zend\Authentication\AuthenticationService
- why i always get error flow the cookbook? i will show what happend with my application HOT 4
- Cannot get a name and parameters for RoleProviderPluginManager HOT 2
- a guard priority question HOT 1
- Is there Mechanism of a cache? HOT 1
- Problem with doctrine update
- What is the plan of 3.0 release? HOT 7
- Maybe we could have PermissionProvider?
- HierarchicalRoleInterface problem HOT 1
- Config for version 3.0 needs some fixing or explaining HOT 9
- Migrate to Laminas HOT 7
- Is there a migration to Laminas either on-going or planned?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zfc-rbac.