Completed
Pull Request — master (#23)
by Ashley
01:57
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 Illuminate\Foundation\Application;
7
use Illuminate\Support\Manager;
8
9
class DoormanManager extends Manager
10
{
11
    public function __construct(Application $application)
12
    {
13
        parent::__construct($application);
14
    }
15
16
    /**
17
     * Get the default driver name.
18
     *
19
     * @return string
20
     */
21
    public function getDefaultDriver()
22
    {
23
        return $this->app['config']['doorman.driver'];
24
    }
25
26
    public function createBasicDriver()
27
    {
28
        return new BasicDriver;
29
    }
30
}
31