1 | <?php |
||
14 | class Basic implements HandlerInterface |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $realm; |
||
21 | |||
22 | /** |
||
23 | * @var callable |
||
24 | */ |
||
25 | private $implementation; |
||
26 | |||
27 | |||
28 | /** |
||
29 | * @param callable $implementation |
||
30 | * @param string $realm |
||
31 | */ |
||
32 | public function __construct($realm, $implementation) |
||
37 | |||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | public function handle(Request $request) |
||
65 | |||
66 | |||
67 | /** |
||
68 | * @inheritdoc |
||
69 | */ |
||
70 | public function requireAuthentication(Response $response) |
||
78 | |||
79 | } |
||
80 |