Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function process(Request $request, Handler $handler) : Response |
||
34 | { |
||
35 | $connection = $handler->getConnection(); |
||
36 | |||
37 | if ($this->greeting !== $greeting = $connection->open()) { |
||
38 | $handler->handle(new AuthenticateRequest( |
||
39 | $greeting->getSalt(), |
||
40 | $this->username, |
||
41 | $this->password |
||
42 | )); |
||
43 | |||
44 | $this->greeting = $greeting; |
||
45 | } |
||
46 | |||
47 | return $handler->handle($request); |
||
48 | } |
||
50 |