Test Failed
Pull Request — stable (#25)
by Nuno
02:26 queued 35s
created

Container::getCachedServicesPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace LaravelZero\Framework;
4
5
use Illuminate\Container\Container as BaseContainer;
6
use LaravelZero\Framework\Exceptions\NotImplementedException;
7
use Illuminate\Contracts\Foundation\Application as LaravelApplication;
8
9
/**
10
 * This is the Zero Framework container class.
11
 *
12
 * @author Nuno Maduro <[email protected]>
13
 */
14
class Container extends BaseContainer implements LaravelApplication
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public function version()
20
    {
21
        return config('app.name');
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function basePath()
28
    {
29
        return BASE_PATH;
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function environment()
36
    {
37
        return config('app.production') ? 'production' : 'development';
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function runningInConsole()
44
    {
45
        return true;
46
    }
47
48
    /**
49
     * {@inheritdoc}
50
     */
51
    public function isDownForMaintenance()
52
    {
53
        return false;
54
    }
55
56
    /**
57
     * {@inheritdoc}
58
     */
59
    public function registerConfiguredProviders()
60
    {
61
        throw new NotImplementedException;
62
    }
63
64
    /**
65
     * {@inheritdoc}
66
     */
67
    public function register($provider, $options = [], $force = false)
68
    {
69
        throw new NotImplementedException;
70
    }
71
72
    /**
73
     * {@inheritdoc}
74
     */
75
    public function registerDeferredProvider($provider, $service = null)
76
    {
77
        throw new NotImplementedException;
78
    }
79
80
    /**
81
     * {@inheritdoc}
82
     */
83
    public function boot()
84
    {
85
        throw new NotImplementedException;
86
    }
87
88
    /**
89
     * {@inheritdoc}
90
     */
91
    public function booting($callback)
92
    {
93
        throw new NotImplementedException;
94
    }
95
96
    /**
97
     * {@inheritdoc}
98
     */
99
    public function booted($callback)
100
    {
101
        throw new NotImplementedException;
102
    }
103
104
    /**
105
     * {@inheritdoc}
106
     */
107
    public function getCachedServicesPath()
108
    {
109
        throw new NotImplementedException;
110
    }
111
112
    /**
113
     * {@inheritdoc}
114
     */
115
    public function getCachedPackagesPath()
116
    {
117
        throw new NotImplementedException;
118
    }
119
}
120