1 | <?php |
||
8 | class HashidServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Indicates if loading of the provider is deferred. |
||
12 | * |
||
13 | * @var bool |
||
14 | */ |
||
15 | protected $defer = true; |
||
16 | |||
17 | /** |
||
18 | * Register the service provider. |
||
19 | * |
||
20 | * @return void |
||
21 | */ |
||
22 | 7 | public function register() |
|
29 | |||
30 | /** |
||
31 | * Setup package assets. |
||
32 | * |
||
33 | * @return void |
||
34 | */ |
||
35 | 7 | protected function setupAssets() |
|
36 | { |
||
37 | 7 | if (is_a($this->app, 'Laravel\Lumen\Application')) { |
|
38 | 1 | $this->app->configure('hashid'); |
|
|
|||
39 | } |
||
40 | |||
41 | 6 | $this->mergeConfigFrom($config = __DIR__.'/../config/hashid.php', 'hashid'); |
|
42 | |||
43 | 6 | if ($this->app->runningInConsole()) { |
|
44 | 6 | $this->publishes([$config => config_path('hashid.php')], 'hashid'); |
|
45 | 6 | } |
|
46 | 6 | } |
|
47 | |||
48 | /** |
||
49 | * Register service bindings. |
||
50 | * |
||
51 | * @return void |
||
52 | */ |
||
53 | 6 | protected function registerServices() |
|
67 | |||
68 | /** |
||
69 | * Create a new instance from class name. |
||
70 | * |
||
71 | * @param string $class |
||
72 | * @param array $args |
||
73 | * @return mixed |
||
74 | */ |
||
75 | 4 | protected function createInstance($class, array $args = []) |
|
82 | |||
83 | /** |
||
84 | * Get singleton bindings to be registered. |
||
85 | * |
||
86 | * @return array |
||
87 | */ |
||
88 | 6 | protected function getSingletonBindings() |
|
98 | |||
99 | /** |
||
100 | * Get class aliases to be registered. |
||
101 | * |
||
102 | * @return array |
||
103 | */ |
||
104 | 6 | protected function getClassAliases() |
|
115 | |||
116 | /** |
||
117 | * Register console commands. |
||
118 | * |
||
119 | * @return void |
||
120 | */ |
||
121 | 6 | protected function registerCommands() |
|
130 | |||
131 | /** |
||
132 | * Get the services provided by the provider. |
||
133 | * |
||
134 | * @return string[] |
||
135 | */ |
||
136 | 2 | public function provides() |
|
143 | } |
||
144 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.