for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Workana\AsyncJobs\Router;
use Bernard\Router\SimpleRouter;
use Workana\AsyncJobs\Executor\AsyncActionExecutor;
/**
* Default execution router
*
* @author Carlos Frutos <[email protected]>
*/
class DefaultRouter extends SimpleRouter
{
* Creates a new instance
* @param AsyncActionExecutor $asyncActionExecutor
public function __construct(
AsyncActionExecutor $asyncActionExecutor
) {
$this->add('AsyncAction', $asyncActionExecutor);
$this->add('AsyncEvent', $asyncActionExecutor);
}