Failed Conditions
Pull Request — master (#10)
by Maximo
03:05
created

library/Bootstrap/Tests.php (1 issue)

1
<?php
0 ignored issues
show
End of line character is invalid; expected "\n" but found "\r\n"
Loading history...
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