for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/******************************************************************************
* Copyright (c) 2016 Constantin Galbenu <[email protected]> *
******************************************************************************/
namespace Gica\Cqrs\Command;
use Gica\Cqrs\Command;
class CommandApplier
{
public function applyCommand($aggregate, Command $command, $methodName)
$generator = call_user_func([$aggregate, $methodName], $command);
yield from $generator;
}