1 | <?php |
||
9 | class LaravelApplicationWrapper implements ApplicationWrapperContract |
||
10 | { |
||
11 | /** |
||
12 | * Laravel application instance. |
||
13 | */ |
||
14 | protected $app; |
||
15 | |||
16 | /** |
||
17 | * Constructor. |
||
18 | */ |
||
19 | public function __construct() |
||
23 | |||
24 | /** |
||
25 | * Wrapper around Cache::remember(). |
||
26 | * |
||
27 | * @param $key |
||
28 | * @param $minutes |
||
29 | * @param $tags |
||
30 | * @param callable $callback |
||
31 | * |
||
32 | * @return mixed |
||
33 | */ |
||
34 | public function cache($key, $minutes, $tags, Closure $callback) |
||
44 | |||
45 | /** |
||
46 | * Wrapper around app()->call(). |
||
47 | * |
||
48 | * @param $method |
||
49 | * @param array $params |
||
50 | * |
||
51 | * @return mixed |
||
52 | */ |
||
53 | public function call($method, $params = []) |
||
57 | |||
58 | /** |
||
59 | * Get the specified configuration value. |
||
60 | * |
||
61 | * @param string $key |
||
62 | * @param mixed $default |
||
63 | * |
||
64 | * @return mixed |
||
65 | */ |
||
66 | public function config($key, $default = null) |
||
70 | |||
71 | /** |
||
72 | * Wrapper around app()->getNamespace(). |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getNamespace() |
||
80 | |||
81 | /** |
||
82 | * Wrapper around app()->make(). |
||
83 | * |
||
84 | * @param string $abstract |
||
85 | * @param array $parameters |
||
86 | * |
||
87 | * @return mixed |
||
88 | */ |
||
89 | public function make($abstract, array $parameters = []) |
||
93 | |||
94 | /** |
||
95 | * Wrapper around app()->get(). |
||
96 | * |
||
97 | * @param string $id |
||
98 | * |
||
99 | * @throws \Illuminate\Container\EntryNotFoundException |
||
100 | * |
||
101 | * @return mixed |
||
102 | */ |
||
103 | public function get($id) |
||
107 | } |
||
108 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.