1 | <?php |
||
5 | class Proxy |
||
6 | { |
||
7 | private $callable; |
||
8 | |||
9 | private $middlewares; |
||
10 | |||
11 | /** |
||
12 | * Proxy constructor. |
||
13 | * |
||
14 | * @param $callable |
||
15 | * @param $middlewares |
||
16 | */ |
||
17 | 11 | public function __construct($callable, $middlewares) |
|
22 | |||
23 | 11 | public function __call($method, $params) |
|
49 | |||
50 | /** |
||
51 | * @param $params |
||
52 | * @param Pipeline $pipeline |
||
53 | * @param \Closure $core |
||
54 | * |
||
55 | * @throws \Throwable |
||
56 | * @return mixed |
||
57 | */ |
||
58 | 11 | private function sendItThroughPipes($params, Pipeline $pipeline, \Closure $core) |
|
68 | } |
||
69 |