| 1 | <?php |
||
| 7 | final class Executor |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var BuilderInterface |
||
| 11 | */ |
||
| 12 | private $builder; |
||
| 13 | |||
| 14 | 1 | public function __construct(BuilderInterface $builder) |
|
| 18 | |||
| 19 | /** |
||
| 20 | * Executes a callable, building and injecting its dependencies |
||
| 21 | * |
||
| 22 | * @param callable $callable |
||
| 23 | * @param array $arguments |
||
| 24 | * |
||
| 25 | * @throws CanNotInstantiateDependenciesException |
||
| 26 | * |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | 1 | public function execute(callable $callable, array $arguments = []) |
|
| 33 | } |
||
| 34 |