1 | <?php |
||
18 | class Admin |
||
19 | { |
||
20 | use HasAssets; |
||
21 | |||
22 | /** |
||
23 | * The Laravel admin version. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | const VERSION = '1.6.8'; |
||
28 | |||
29 | /** |
||
30 | * @var Navbar |
||
31 | */ |
||
32 | protected $navbar; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | public static $metaTitle; |
||
38 | |||
39 | /** |
||
40 | * @var array |
||
41 | */ |
||
42 | public static $extensions = []; |
||
43 | |||
44 | /** |
||
45 | * @var []Closure |
||
46 | */ |
||
47 | public static $booting; |
||
48 | |||
49 | /** |
||
50 | * @var []Closure |
||
51 | */ |
||
52 | public static $booted; |
||
53 | |||
54 | /** |
||
55 | * Returns the long version of Laravel-admin. |
||
56 | * |
||
57 | * @return string The long application version |
||
58 | */ |
||
59 | public static function getLongVersion() |
||
60 | { |
||
61 | return sprintf('Laravel-admin <comment>version</comment> <info>%s</info>', self::VERSION); |
||
62 | } |
||
63 | |||
64 | /** |
||
65 | * @param $model |
||
66 | * @param Closure $callable |
||
67 | * |
||
68 | * @return \Encore\Admin\Grid |
||
69 | * |
||
70 | * @deprecated since v1.6.1 |
||
71 | */ |
||
72 | public function grid($model, Closure $callable) |
||
73 | { |
||
74 | return new Grid($this->getModel($model), $callable); |
||
75 | } |
||
76 | |||
77 | /** |
||
78 | * @param $model |
||
79 | * @param Closure $callable |
||
80 | * |
||
81 | * @return \Encore\Admin\Form |
||
82 | * |
||
83 | * @deprecated since v1.6.1 |
||
84 | */ |
||
85 | public function form($model, Closure $callable) |
||
89 | |||
90 | /** |
||
91 | * Build a tree. |
||
92 | * |
||
93 | * @param $model |
||
94 | * |
||
95 | * @return \Encore\Admin\Tree |
||
96 | */ |
||
97 | public function tree($model, Closure $callable = null) |
||
101 | |||
102 | /** |
||
103 | * Build show page. |
||
104 | * |
||
105 | * @param $model |
||
106 | * @param mixed $callable |
||
107 | * |
||
108 | * @return Show |
||
109 | * |
||
110 | * @deprecated since v1.6.1 |
||
111 | */ |
||
112 | public function show($model, $callable = null) |
||
116 | |||
117 | /** |
||
118 | * @param Closure $callable |
||
119 | * |
||
120 | * @return \Encore\Admin\Layout\Content |
||
121 | * |
||
122 | * @deprecated since v1.6.1 |
||
123 | */ |
||
124 | public function content(Closure $callable = null) |
||
128 | |||
129 | /** |
||
130 | * @param $model |
||
131 | * |
||
132 | * @return mixed |
||
133 | */ |
||
134 | public function getModel($model) |
||
146 | |||
147 | /** |
||
148 | * Left sider-bar menu. |
||
149 | * |
||
150 | * @return array |
||
151 | */ |
||
152 | public function menu() |
||
158 | |||
159 | /** |
||
160 | * Set admin title. |
||
161 | * |
||
162 | * @return void |
||
163 | */ |
||
164 | public static function setTitle($title) |
||
168 | |||
169 | /** |
||
170 | * Get admin title. |
||
171 | * |
||
172 | * @return Config |
||
173 | */ |
||
174 | public function title() |
||
178 | |||
179 | /** |
||
180 | * Get current login user. |
||
181 | * |
||
182 | * @return mixed |
||
183 | */ |
||
184 | public function user() |
||
188 | |||
189 | /** |
||
190 | * Set navbar. |
||
191 | * |
||
192 | * @param Closure|null $builder |
||
193 | * |
||
194 | * @return Navbar |
||
195 | */ |
||
196 | public function navbar(Closure $builder = null) |
||
204 | |||
205 | /** |
||
206 | * Get navbar object. |
||
207 | * |
||
208 | * @return \Encore\Admin\Widgets\Navbar |
||
209 | */ |
||
210 | public function getNavbar() |
||
218 | |||
219 | /** |
||
220 | * Register the auth routes. |
||
221 | * |
||
222 | * @return void |
||
223 | */ |
||
224 | public function registerAuthRoutes() |
||
254 | |||
255 | /** |
||
256 | * Extend a extension. |
||
257 | * |
||
258 | * @param string $name |
||
259 | * @param string $class |
||
260 | * |
||
261 | * @return void |
||
262 | */ |
||
263 | public static function extend($name, $class) |
||
267 | |||
268 | /** |
||
269 | * @param callable $callback |
||
270 | */ |
||
271 | public static function booting(callable $callback) |
||
275 | |||
276 | /** |
||
277 | * @param callable $callback |
||
278 | */ |
||
279 | public static function booted(callable $callback) |
||
283 | |||
284 | /* |
||
285 | * Disable Pjax for current Request |
||
286 | * |
||
287 | * @return void |
||
288 | */ |
||
289 | public function disablePjax() |
||
295 | } |
||
296 |
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.