| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | 16 | protected function configure() |
|
| 44 | { |
||
| 45 | 16 | $this->bind()->annotatedWith(Header::class)->toInstance($this->header); |
|
| 46 | 16 | $this->bind()->annotatedWith(Cookie::class)->toInstance($this->cookie); |
|
| 47 | 16 | $this->bind()->annotatedWith(QueryParam::class)->toInstance($this->queryParam); |
|
| 48 | |||
| 49 | 16 | $this->bind(TokenExtractorInterface::class)->to(AuthorizationHeaderTokenExtractor::class)->in(Scope::SINGLETON); |
|
| 50 | 16 | $this->bind(TokenExtractorInterface::class)->annotatedWith('query')->to(QueryParameterTokenExtractor::class)->in(Scope::SINGLETON); |
|
| 51 | 16 | $this->bind(TokenExtractorInterface::class)->annotatedWith('cookie')->to(CookieTokenExtractor::class)->in(Scope::SINGLETON); |
|
| 52 | 16 | } |
|
| 53 | } |
||
| 54 |