1 | <?php |
||
14 | abstract class ViewComposerServiceProvider extends ServiceProvider |
||
15 | { |
||
16 | /* ----------------------------------------------------------------- |
||
17 | | Properties |
||
18 | | ----------------------------------------------------------------- |
||
19 | */ |
||
20 | |||
21 | /** |
||
22 | * Register the composer classes. |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $composerClasses = [ |
||
27 | // 'view-name' => 'class' |
||
28 | ]; |
||
29 | |||
30 | /* ----------------------------------------------------------------- |
||
31 | | Main Methods |
||
32 | | ----------------------------------------------------------------- |
||
33 | */ |
||
34 | |||
35 | /** |
||
36 | * Boot the view composer service provider. |
||
37 | */ |
||
38 | public function boot() |
||
42 | |||
43 | /** |
||
44 | * Register the view composer classes. |
||
45 | */ |
||
46 | protected function registerComposerClasses() |
||
52 | |||
53 | /* ----------------------------------------------------------------- |
||
54 | | Other Methods |
||
55 | | ----------------------------------------------------------------- |
||
56 | */ |
||
57 | |||
58 | /** |
||
59 | * Get the view factory instance. |
||
60 | * |
||
61 | * @return \Illuminate\Contracts\View\Factory |
||
62 | */ |
||
63 | protected function view() |
||
67 | |||
68 | /** |
||
69 | * Register a view composer event. |
||
70 | * |
||
71 | * @param array|string $views |
||
72 | * @param \Closure|string $callback |
||
73 | * |
||
74 | * @return array |
||
75 | */ |
||
76 | public function composer($views, $callback) |
||
80 | } |
||
81 |