1 | <?php |
||
12 | class View |
||
13 | { |
||
14 | /** |
||
15 | * @var |
||
16 | */ |
||
17 | protected $app; |
||
18 | |||
19 | /** |
||
20 | * @var |
||
21 | */ |
||
22 | private $view; |
||
23 | |||
24 | /** |
||
25 | * @var |
||
26 | */ |
||
27 | private $viewPaths; |
||
28 | |||
29 | /** |
||
30 | * @var |
||
31 | */ |
||
32 | private $cachePath; |
||
33 | |||
34 | /** |
||
35 | * Create view factory instance if not exists. |
||
36 | * |
||
37 | * @param array $views |
||
38 | * @param string $cache |
||
39 | * @param \Illuminate\Contracts\Container\Container|null $container |
||
40 | * |
||
41 | * @return void |
||
|
|||
42 | */ |
||
43 | public function __construct($views = [], $cache = '', ContainerContract $container = null) |
||
69 | |||
70 | /** |
||
71 | * Bind files calss if not exists. |
||
72 | * |
||
73 | * @return void |
||
74 | */ |
||
75 | protected function registerFileSystem() |
||
81 | |||
82 | /** |
||
83 | * Bind events calss if not exists. |
||
84 | * |
||
85 | * @return void |
||
86 | */ |
||
87 | protected function registerEvents() |
||
93 | |||
94 | /** |
||
95 | * Bind config calss if not exists. |
||
96 | * |
||
97 | * @return void |
||
98 | */ |
||
99 | protected function registerConfig() |
||
114 | |||
115 | /** |
||
116 | * Get blade compiler. |
||
117 | * |
||
118 | * @return \Illuminate\View\Compilers\BladeCompiler |
||
119 | */ |
||
120 | public function blade() |
||
124 | |||
125 | /** |
||
126 | * Call view factory methods dynamically. |
||
127 | * |
||
128 | * @param string $method |
||
129 | * @param array $parameters |
||
130 | * |
||
131 | * @return \Illuminate\View\View|\BadMethodCallException |
||
132 | */ |
||
133 | public function __call($method, $parameters) |
||
141 | |||
142 | /** |
||
143 | * Call view factory methods statically. |
||
144 | * |
||
145 | * @param string $method |
||
146 | * @param array $parameters |
||
147 | * |
||
148 | * @return \Illuminate\View\View|\BadMethodCallException |
||
149 | */ |
||
150 | public static function __callStatic($method, $parameters) |
||
158 | } |
||
159 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.