Chief icon indicating copy to clipboard operation
Chief copied to clipboard

Queue

Open bmutinda opened this issue 8 years ago • 0 comments

Hey! Can someone give a clear explanation of this?? https://github.com/adamnicholson/Chief/blob/master/src/Bridge/Laravel/IlluminateQueuer.php#L18

This is my CommandQueuer

class CommandBusQueuer implements CommandQueuer
{
    /**
     * Queue a command to be executed
     *
     * @param Command $command
     *
     * @return mixed
     */
    public function queue(Command $command)
    {
    }
}

What should i write inside the queue method??

I have tried using the execute($command) of the chief like this App::getContainer()->get("chief")->execute( $command ) to run the command but am getting Allowed memory size of 134217728.... .

This is how i have initialized chief

$chief = new Chief();
$queuer = new \MyProject\Events\CommandBusQueuer();
$chief->pushDecorator(new CommandQueueingDecorator($queuer));

bmutinda avatar Oct 25 '16 07:10 bmutinda