1 | <?php namespace Arcanedev\Support\Providers; |
||
11 | abstract class ServiceProvider extends IlluminateServiceProvider |
||
12 | { |
||
13 | /* ----------------------------------------------------------------- |
||
14 | | Main Methods |
||
15 | | ----------------------------------------------------------------- |
||
16 | */ |
||
17 | |||
18 | /** |
||
19 | * Register a service provider. |
||
20 | * |
||
21 | * @param \Illuminate\Support\ServiceProvider|string $provider |
||
22 | * @param bool $force |
||
23 | * |
||
24 | * @return \Illuminate\Support\ServiceProvider |
||
25 | */ |
||
26 | protected function registerProvider($provider, $force = false) |
||
30 | |||
31 | /** |
||
32 | * Register multiple service providers. |
||
33 | * |
||
34 | * @param array $providers |
||
35 | */ |
||
36 | protected function registerProviders(array $providers) |
||
42 | |||
43 | /** |
||
44 | * Register a console service provider. |
||
45 | * |
||
46 | * @param \Illuminate\Support\ServiceProvider|string $provider |
||
47 | * @param bool $force |
||
48 | * |
||
49 | * @return \Illuminate\Support\ServiceProvider|null |
||
50 | */ |
||
51 | protected function registerConsoleServiceProvider($provider, $force = false) |
||
58 | |||
59 | /** |
||
60 | * Register commands service provider. |
||
61 | * |
||
62 | * @param \Illuminate\Support\ServiceProvider|string $provider |
||
63 | */ |
||
64 | protected function registerCommands($provider) |
||
69 | |||
70 | /** |
||
71 | * Register a binding with the container. |
||
72 | * |
||
73 | * @param string $abstract |
||
74 | * @param \Closure|string|null $concrete |
||
75 | * @param bool $shared |
||
76 | */ |
||
77 | public function bind($abstract, $concrete = null, $shared = false) |
||
81 | |||
82 | /** |
||
83 | * Register a shared binding in the container. |
||
84 | * |
||
85 | * @param string|array $abstract |
||
86 | * @param \Closure|string|null $concrete |
||
87 | */ |
||
88 | protected function singleton($abstract, $concrete = null) |
||
92 | } |
||
93 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.