| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class BasicAuthenticator implements AuthenticationInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The IoC Container. |
||
| 13 | * |
||
| 14 | * @var Container |
||
| 15 | */ |
||
| 16 | protected $app; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Constructor, likely never called in implementation |
||
| 20 | * but rather through the Factory. |
||
| 21 | * |
||
| 22 | * @param Container $app |
||
| 23 | */ |
||
| 24 | 2 | public function __construct(Container $app) |
|
| 25 | { |
||
| 26 | 2 | $this->app = $app; |
|
| 27 | 2 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Function to add the necessary authentication |
||
| 31 | * to the request. |
||
| 32 | * |
||
| 33 | * @param Request $request Request passed by reference |
||
| 34 | */ |
||
| 35 | 1 | public function authenticateRequest($request) |
|
| 40 | 1 | } |
|
| 41 | } |
||
| 42 |