for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Imanghafoori\HeyMan\WatchingStrategies;
use Illuminate\Support\Facades\Event;
class BasicEventManager
{
private $events;
/**
* ConditionApplier constructor.
*
* @param $event
*/
public function init($event)
$this->events = $event;
return $this;
}
* @param $callback
public function startGuarding(callable $callback)
Event::listen($this->events, $callback);
$this->events = [];