Coder Social home page Coder Social logo

Redirect to Login about zfc-rbac HOT 3 CLOSED

zf-commons avatar zf-commons commented on August 18, 2024
Redirect to Login

from zfc-rbac.

Comments (3)

bakura10 avatar bakura10 commented on August 18, 2024

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.

bakura10 avatar bakura10 commented on August 18, 2024

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.

bakura10 avatar bakura10 commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.