2017 © Pedro Peláez
 

library eventprocess

simple event process plugin including dispatching on tree for laravel framework

image

jacksunny/eventprocess

simple event process plugin including dispatching on tree for laravel framework

  • Tuesday, August 15, 2017
  • by jacksunny2020
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

eventprocess

simple event process plugin including dispatching on tree for laravel framework, (*1)

How to install and configurate package

  1. install the laravel package composer require "jacksunny/eventprocess":"dev-master", (*2)

    please check exist line "minimum-stability": "dev" in composer.json if failed, (*3)

  2. append new service provider file line in the section providers of file app.config after appended,it should looks like, (*4)

   'providers' => [
        Illuminate\Auth\AuthServiceProvider::class,
        ......
        Jacksunny\EventProcess\EventProcessServiceProvider::class,
    ],
   
  1. create event class TestEvent
    class TestEvent extends BaseEvent implements EventContract {

    public $context_obj;

    public function __construct(User $user, Request $request, $entity, $action_name, array $options = null, TreeWalkerContract $tree_walker = null) {
        parent::__construct($tree_walker, $user, $request, $entity, $action_name, $options);
        $this->context_obj = $user;
    }
    
  1. create event listener class TestEventListener
    class TestEventListener extends BaseEventListener implements EventListenerContract {

    public function __construct() {
        parent::__construct($this);
    }

    public function handle(TestEvent $event) {
        parent::handle($event);

        //other process code on this event type
    }
    
  1. please notify me if you got any problem or error on it,thank you!

The Versions

15/08 2017

dev-master

9999999-dev

simple event process plugin including dispatching on tree for laravel framework

  Sources   Download

The Requires

 

by Avatar jacksunny2020

08/08 2017

v1.0

1.0.0.0

simple event process plugin including dispatching on tree for laravel framework

  Sources   Download

The Requires

 

by Avatar jacksunny2020

09/06 2017

v0.7

0.7.0.0

simple event process plugin including dispatching on tree for laravel framework

  Sources   Download

The Requires

 

by Avatar jacksunny2020