Completed
Push — master ( 349a1f...8ae7aa )
by Ashley
07:19
created

DoormanManager::getDefaultDriver()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

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 2
nc 1
nop 0
1
<?php
2
3
namespace Clarkeash\Doorman;
4
5
use Clarkeash\Doorman\Drivers\BasicDriver;
6
use Clarkeash\Doorman\Drivers\UuidDriver;
7
use Illuminate\Foundation\Application;
8
use Illuminate\Support\Manager;
9
10
/**
11
 * Class DoormanManager
12
 *
13
 * @package Clarkeash\Doorman
14
 * @method string code()
15
 */
16
class DoormanManager extends Manager
17
{
18
    public function __construct(Application $application)
19
    {
20
        parent::__construct($application);
21
    }
22
23
    /**
24
     * Get the default driver name.
25
     *
26
     * @return string
27
     */
28
    public function getDefaultDriver()
29
    {
30
        return $this->app['config']['doorman.driver'];
31
    }
32
33
    public function createBasicDriver()
34
    {
35
        return new BasicDriver;
36
    }
37
38
    public function createUuidDriver()
39
    {
40
        return new UuidDriver;
41
    }
42
}
43