2017 © Pedro Peláez
 

library event-security-bridge

Bridge between event dispatcher and nette security

image

contributte/event-security-bridge

Bridge between event dispatcher and nette security

  • Thursday, August 10, 2017
  • by f3l1x
  • Repository
  • 2 Watchers
  • 2 Stars
  • 3,248 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 10 % Grown

The README.md

, (*1)

, (*2)

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte , (*3)

Disclaimer

:warning: This project is no longer being maintained. Please use contributte/event-dispatcher-extra.
Composer contributte/event-security-bridge
Version
PHP
License

Versions

State Version Branch PHP
stable ^0.1 master >= 5.6

Usage :tada:

extensions:
    events: Contributte\EventDispatcher\DI\EventDispatcherExtension
    events2security: Contributte\Events\Bridges\Security\DI\EventSecurityBridgeExtension

Bridge :wrench:

There are several Nette Security events on which you can listen to., (*4)

use Contributte\Events\Bridges\Security\Event\LoggedInEvent;
use Contributte\Events\Bridges\Security\Event\LoggedOutEvent;
  • LoggedInEvent::NAME && SecurityEvents::ON_LOGGED_IN
  • LoggedOutEvent::NAME && SecurityEvents::ON_LOGGED_OUT

Subscriber :bulb:

use Contributte\EventDispatcher\EventSubscriber;
use Contributte\Events\Bridges\Security\Event\LoggedInEvent;
use Contributte\Events\Bridges\Security\Event\SecurityEvents;

final class LoggedInSubscriber implements EventSubscriber
{

    /**
     * @return array
     */
    public static function getSubscribedEvents()
    {
        return [SecurityEvents::ON_LOGGED_IN => 'onLoggedIn'];
    }

    /**
     * @param LoggedInEvent $event
     * @return void
     */
    public function onLoggedIn(LoggedInEvent $event)
    {
        // do magic
    }

}

Development

This package was maintain by these authors., (*5)

, (*6)


Consider to support contributte development team. Also thank you for being used this package., (*7)

The Versions

10/08 2017

dev-master

9999999-dev https://github.com/contributte/event-security-bridge

Bridge between event dispatcher and nette security

  Sources   Download

MIT

The Requires

 

The Development Requires

dispatcher application event nette bridge

04/07 2017

v0.1

0.1.0.0 https://github.com/contributte/event-security-bridge

Bridge between event dispatcher and nette security

  Sources   Download

MIT

The Requires

 

The Development Requires

dispatcher application event nette bridge