1 | <?php |
||
23 | class BasicAuthSubscriber implements EventSubscriberInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var BasicAuthInterface |
||
27 | */ |
||
28 | private $basicAuth; |
||
29 | |||
30 | /** |
||
31 | * @param BasicAuthInterface $basicAuth |
||
32 | */ |
||
33 | 36 | public function __construct(BasicAuthInterface $basicAuth) |
|
37 | |||
38 | /** |
||
39 | * @return BasicAuthInterface |
||
40 | */ |
||
41 | 9 | public function getBasicAuth() |
|
45 | |||
46 | /** |
||
47 | * @param RequestCreatedEvent $event |
||
48 | */ |
||
49 | 9 | public function onRequestCreated(RequestCreatedEvent $event) |
|
53 | |||
54 | /** |
||
55 | * @param MultiRequestCreatedEvent $event |
||
56 | */ |
||
57 | 9 | public function onMultiRequestCreated(MultiRequestCreatedEvent $event) |
|
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | 9 | public static function getSubscribedEvents() |
|
75 | } |
||
76 |