src/Anonym/Cron/Cron.php
public function event(Closure $command)
    {
        $response = $command();

        if ($this->resolveCommandResponse($response)) {
            EventReposity::add($response);
        }
    }
public function event(Closure $command)
    {
        $response = $command();

        if ($this->resolveCommandResponse($response)) {
            EventReposity::add($response);
        }
    }
public function event ( Closure $ command ) { $ response = $ command ( ) ; if ( $ this -> resolveCommandResponse ( $ response ) ) { EventReposity :: add ( $ response ) ; } }
add a new event to reposity

Note: $command must be a closure

@param Closure $command
add a new event to reposity