PHP Class Rinvex\Repository\Listeners\RepositoryEventListener

Datei anzeigen Open project: rinvex/repository

Public Methods

Method Description
entityCreated ( Rinvex\Repository\Contracts\RepositoryContract $repository, mixed $entity ) : void Listen to entities created.
entityDeleted ( Rinvex\Repository\Contracts\RepositoryContract $repository, mixed $entity ) : void Listen to entities deleted.
entityUpdated ( Rinvex\Repository\Contracts\RepositoryContract $repository, mixed $entity ) : void Listen to entities updated.
subscribe ( Illuminate\Contracts\Events\Dispatcher $dispatcher ) Register the listeners for the subscriber.

Method Details

entityCreated() public method

Listen to entities created.
public entityCreated ( Rinvex\Repository\Contracts\RepositoryContract $repository, mixed $entity ) : void
$repository Rinvex\Repository\Contracts\RepositoryContract
$entity mixed
return void

entityDeleted() public method

Listen to entities deleted.
public entityDeleted ( Rinvex\Repository\Contracts\RepositoryContract $repository, mixed $entity ) : void
$repository Rinvex\Repository\Contracts\RepositoryContract
$entity mixed
return void

entityUpdated() public method

Listen to entities updated.
public entityUpdated ( Rinvex\Repository\Contracts\RepositoryContract $repository, mixed $entity ) : void
$repository Rinvex\Repository\Contracts\RepositoryContract
$entity mixed
return void

subscribe() public method

Register the listeners for the subscriber.
public subscribe ( Illuminate\Contracts\Events\Dispatcher $dispatcher )
$dispatcher Illuminate\Contracts\Events\Dispatcher