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

MiddlewareServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 37
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A register() 0 4 1
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