for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Anomaly\UsersModule\User;
use Anomaly\Streams\Platform\Entry\Contract\EntryInterface;
use Anomaly\Streams\Platform\Entry\EntryObserver;
use Anomaly\UsersModule\User\Event\UserWasCreated;
use Anomaly\UsersModule\User\Event\UserWasDeleted;
/**
* Class UserObserver
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <[email protected]>
* @author Ryan Thompson <[email protected]>
*/
class UserObserver extends EntryObserver
{
* Fired after a user is created.
* @param EntryInterface $entry
public function created(EntryInterface $entry)
$this->events->fire(new UserWasCreated($entry));
parent::created($entry);
}
* Fired after a user is deleted.
public function deleted(EntryInterface $entry)
$this->events->fire(new UserWasDeleted($entry));
parent::deleted($entry);