1 | <?php |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
2 | |||
3 | namespace Gewaer\Bootstrap; |
||
4 | |||
5 | use Dmkit\Phalcon\Auth\Middleware\Micro as AuthMicro; |
||
6 | |||
7 | class Tests extends Api |
||
8 | { |
||
9 | /** |
||
10 | * Run the application |
||
11 | * |
||
12 | * @return mixed |
||
13 | */ |
||
14 | 2 | public function run() |
|
15 | { |
||
16 | 2 | $config = $this->container->getConfig()->jwt->toArray(); |
|
17 | |||
18 | //ignore token validation if disable |
||
19 | 2 | $config['ignoreUri'] = ['regex: *']; |
|
20 | |||
21 | //JWT Validation |
||
22 | 2 | $auth = new AuthMicro($this->application, $config); |
|
23 | |||
24 | 2 | return $this->application; |
|
25 | } |
||
26 | } |
||
27 |