public __construct ( array $supervisors, Graze\Supervisor\Handler\HandlerInterface $handler = null ) | ||
$supervisors | array | |
$handler | Graze\Supervisor\Handler\HandlerInterface |
public function __construct(array $supervisors, HandlerInterface $handler = null)
{
$this->handler = $handler ?: $this->getDefaultHandler();
$this->supervisors = array_filter($supervisors, function (SupervisorInterface $supervisor) {
return true;
});
}