|
@@ 44-52 (lines=9) @@
|
| 41 |
|
/** |
| 42 |
|
* @param CommandInterface $command |
| 43 |
|
*/ |
| 44 |
|
private function handlePreMiddleWares(CommandInterface $command) |
| 45 |
|
{ |
| 46 |
|
$commandName = '\\' . get_class($command); |
| 47 |
|
if (true === $this->optionsResolver->preMiddleWareHasCommands($commandName)) { |
| 48 |
|
foreach ($this->optionsResolver->getPreMiddleWareOptions($commandName) as $preMiddleWareOption) { |
| 49 |
|
$this->container->get($preMiddleWareOption)->handle($command); |
| 50 |
|
} |
| 51 |
|
} |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
/** |
| 55 |
|
* @param CommandInterface $command |
|
@@ 65-73 (lines=9) @@
|
| 62 |
|
/** |
| 63 |
|
* @param CommandInterface $command |
| 64 |
|
*/ |
| 65 |
|
private function handlePostMiddleWares(CommandInterface $command) |
| 66 |
|
{ |
| 67 |
|
$commandName = '\\' . get_class($command); |
| 68 |
|
if (true === $this->optionsResolver->postMiddleWareHasCommands($commandName)) { |
| 69 |
|
foreach ($this->optionsResolver->getPostMiddleWareOptions($commandName) as $postMiddleWareOption) { |
| 70 |
|
$this->container->get($postMiddleWareOption)->handle($command); |
| 71 |
|
} |
| 72 |
|
} |
| 73 |
|
} |
| 74 |
|
} |
| 75 |
|
|