src/Chain/ContainerMiddlewareChain.php 1 location
|
@@ 39-49 (lines=11) @@
|
36 |
|
/** |
37 |
|
* @param string $service |
38 |
|
*/ |
39 |
|
public function registerService($service) |
40 |
|
{ |
41 |
|
$index = array_search($service, $this->middleware_handler_ids); |
42 |
|
|
43 |
|
// move existing middleware to end of chain |
44 |
|
if ($index !== false) { |
45 |
|
unset($this->middleware_handler_ids[$index]); |
46 |
|
} |
47 |
|
|
48 |
|
$this->middleware_handler_ids[] = $service; |
49 |
|
} |
50 |
|
|
51 |
|
/** |
52 |
|
* @param mixed $message |
src/Chain/SymfonyContainerMiddlewareChain.php 1 location
|
@@ 30-40 (lines=11) @@
|
27 |
|
/** |
28 |
|
* @param string $service |
29 |
|
*/ |
30 |
|
public function registerService($service) |
31 |
|
{ |
32 |
|
$index = array_search($service, $this->middleware_handler_ids); |
33 |
|
|
34 |
|
// move existing middleware to end of chain |
35 |
|
if ($index !== false) { |
36 |
|
unset($this->middleware_handler_ids[$index]); |
37 |
|
} |
38 |
|
|
39 |
|
$this->middleware_handler_ids[] = $service; |
40 |
|
} |
41 |
|
|
42 |
|
/** |
43 |
|
* @param mixed $message |