Completed
Push — master ( 857394...4794c5 )
by Mahmoud
03:25
created

MiddlewareServiceProvider::register()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Containers\Application\Providers;
4
5
use App\Containers\Application\Middlewares\ApplicationAuthentication;
6
use App\Port\Middleware\Providers\PortMiddlewareServiceProvider;
7
8
/**
9
 * Class MiddlewareServiceProvider
10
 *
11
 * @author  Mahmoud Zalt  <[email protected]>
12
 */
13
class MiddlewareServiceProvider extends PortMiddlewareServiceProvider
14
{
15
16
    protected $middleware = [
17
18
    ];
19
20
    protected $middlewareGroups = [
21
        'web' => [
22
23
        ],
24
        'api' => [
25
26
        ],
27
    ];
28
29
    protected $routeMiddleware = [
30
        // Hello API App Authentication middleware for third party apps access on behalf of users
31
        'app.auth' => ApplicationAuthentication::class,
32
    ];
33
34
    /**
35
     * Perform post-registration booting of services.
36
     */
37
    public function boot()
38
    {
39
        $this->loadContainersInternalMiddlewares();
40
    }
41
42
    /**
43
     * Register anything in the container.
44
     */
45
    public function register()
46
    {
47
48
    }
49
}
50