1 | <?php |
||
12 | class ServiceChain extends Provider |
||
13 | { |
||
14 | private $chain; |
||
15 | |||
16 | public function __construct() |
||
20 | |||
21 | public function resolve($input, $result = null) |
||
35 | |||
36 | /** |
||
37 | * @param Service $service |
||
38 | * @param object $item |
||
39 | * @param mixed $input |
||
40 | * @param mixed $result |
||
41 | * @param bool $last |
||
42 | * |
||
43 | * @return mixed|null |
||
44 | */ |
||
45 | private function chain(&$service, &$item, $input, $result, $last) |
||
57 | |||
58 | /** |
||
59 | * @param Context $context |
||
60 | * @param string $cmd |
||
61 | * @param array $path |
||
62 | */ |
||
63 | protected function explode($context, $cmd, $path) |
||
82 | |||
83 | /** |
||
84 | * @param Context $context |
||
85 | * @param string $cmd |
||
86 | */ |
||
87 | private function explodePush($path, $context, $cmd, $root) |
||
101 | |||
102 | /** |
||
103 | * @param Context $context |
||
104 | * @param string $cmd |
||
105 | * @param string $service |
||
106 | * @param string $path |
||
107 | */ |
||
108 | protected function push($context, $cmd, $service, $path = null) |
||
127 | |||
128 | } |
||
129 |