Conditions | 6 |
Paths | 8 |
Total Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function handle(Request $request, \Closure $next) |
||
13 | { |
||
14 | Form::registerBuiltinFields(); |
||
15 | |||
16 | Grid::registerColumnDisplayer(); |
||
17 | |||
18 | if (file_exists($bootstrap = admin_path('bootstrap.php'))) { |
||
19 | require $bootstrap; |
||
20 | } |
||
21 | |||
22 | if (! empty(Admin::$booting)) { |
||
23 | foreach (Admin::$booting as $callable) { |
||
24 | call_user_func($callable); |
||
25 | } |
||
26 | } |
||
27 | |||
28 | $this->injectFormAssets(); |
||
29 | |||
30 | if (! empty(Admin::$booted)) { |
||
31 | foreach (Admin::$booted as $callable) { |
||
32 | call_user_func($callable); |
||
33 | } |
||
34 | } |
||
35 | |||
36 | return $next($request); |
||
37 | } |
||
38 | |||
50 |