| 1 | <?php |
||
| 12 | class AsyncActionExecutor |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var ContainerInterface |
||
| 16 | */ |
||
| 17 | protected $container; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Creates a new instance |
||
| 21 | * |
||
| 22 | * @param ContainerInterface $container |
||
| 23 | */ |
||
| 24 | public function __construct(ContainerInterface $container) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Executes the specified action |
||
| 31 | * |
||
| 32 | * @param AsyncAction $action |
||
| 33 | * |
||
| 34 | * @return void |
||
| 35 | */ |
||
| 36 | public function __invoke(AsyncAction $action) |
||
| 42 | } |