| @@ 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->preMiddleWareHasCommand($commandName)) { |
|
| 48 | $this->container->get($this->optionsResolver->getPreMiddleWareOption($commandName))->handle( |
|
| 49 | $command |
|
| 50 | ); |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * @param CommandInterface $command |
|
| @@ 65-72 (lines=8) @@ | ||
| 62 | /** |
|
| 63 | * @param CommandInterface $command |
|
| 64 | */ |
|
| 65 | private function handlePostMiddleWares(CommandInterface $command) |
|
| 66 | { |
|
| 67 | if (true === $this->optionsResolver->postMiddleWareHasCommand(get_class($command))) { |
|
| 68 | $this->container->get($this->optionsResolver->getPostMiddleWareOption('\\' . get_class($command)))->handle( |
|
| 69 | $command |
|
| 70 | ); |
|
| 71 | } |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||