1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,71 +0,0 @@ |
1 |
-<?php |
|
2 |
- |
|
3 |
-namespace Illuminate\View; |
|
4 |
- |
|
5 |
-interface ViewFinderInterface |
|
6 |
-{ |
|
7 |
- /** |
|
8 |
- * Hint path delimiter value. |
|
9 |
- * |
|
10 |
- * @var string |
|
11 |
- */ |
|
12 |
- const HINT_PATH_DELIMITER = '::'; |
|
13 |
- |
|
14 |
- /** |
|
15 |
- * Get the fully qualified location of the view. |
|
16 |
- * |
|
17 |
- * @param string $view |
|
18 |
- * @return string |
|
19 |
- */ |
|
20 |
- public function find($view); |
|
21 |
- |
|
22 |
- /** |
|
23 |
- * Add a location to the finder. |
|
24 |
- * |
|
25 |
- * @param string $location |
|
26 |
- * @return void |
|
27 |
- */ |
|
28 |
- public function addLocation($location); |
|
29 |
- |
|
30 |
- /** |
|
31 |
- * Add a namespace hint to the finder. |
|
32 |
- * |
|
33 |
- * @param string $namespace |
|
34 |
- * @param string|array $hints |
|
35 |
- * @return void |
|
36 |
- */ |
|
37 |
- public function addNamespace($namespace, $hints); |
|
38 |
- |
|
39 |
- /** |
|
40 |
- * Prepend a namespace hint to the finder. |
|
41 |
- * |
|
42 |
- * @param string $namespace |
|
43 |
- * @param string|array $hints |
|
44 |
- * @return void |
|
45 |
- */ |
|
46 |
- public function prependNamespace($namespace, $hints); |
|
47 |
- |
|
48 |
- /** |
|
49 |
- * Replace the namespace hints for the given namespace. |
|
50 |
- * |
|
51 |
- * @param string $namespace |
|
52 |
- * @param string|array $hints |
|
53 |
- * @return void |
|
54 |
- */ |
|
55 |
- public function replaceNamespace($namespace, $hints); |
|
56 |
- |
|
57 |
- /** |
|
58 |
- * Add a valid view extension to the finder. |
|
59 |
- * |
|
60 |
- * @param string $extension |
|
61 |
- * @return void |
|
62 |
- */ |
|
63 |
- public function addExtension($extension); |
|
64 |
- |
|
65 |
- /** |
|
66 |
- * Flush the cache of located views. |
|
67 |
- * |
|
68 |
- * @return void |
|
69 |
- */ |
|
70 |
- public function flush(); |
|
71 |
-} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,71 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+namespace Illuminate\View; |
|
4 |
+ |
|
5 |
+interface ViewFinderInterface |
|
6 |
+{ |
|
7 |
+ /** |
|
8 |
+ * Hint path delimiter value. |
|
9 |
+ * |
|
10 |
+ * @var string |
|
11 |
+ */ |
|
12 |
+ const HINT_PATH_DELIMITER = '::'; |
|
13 |
+ |
|
14 |
+ /** |
|
15 |
+ * Get the fully qualified location of the view. |
|
16 |
+ * |
|
17 |
+ * @param string $view |
|
18 |
+ * @return string |
|
19 |
+ */ |
|
20 |
+ public function find($view); |
|
21 |
+ |
|
22 |
+ /** |
|
23 |
+ * Add a location to the finder. |
|
24 |
+ * |
|
25 |
+ * @param string $location |
|
26 |
+ * @return void |
|
27 |
+ */ |
|
28 |
+ public function addLocation($location); |
|
29 |
+ |
|
30 |
+ /** |
|
31 |
+ * Add a namespace hint to the finder. |
|
32 |
+ * |
|
33 |
+ * @param string $namespace |
|
34 |
+ * @param string|array $hints |
|
35 |
+ * @return void |
|
36 |
+ */ |
|
37 |
+ public function addNamespace($namespace, $hints); |
|
38 |
+ |
|
39 |
+ /** |
|
40 |
+ * Prepend a namespace hint to the finder. |
|
41 |
+ * |
|
42 |
+ * @param string $namespace |
|
43 |
+ * @param string|array $hints |
|
44 |
+ * @return void |
|
45 |
+ */ |
|
46 |
+ public function prependNamespace($namespace, $hints); |
|
47 |
+ |
|
48 |
+ /** |
|
49 |
+ * Replace the namespace hints for the given namespace. |
|
50 |
+ * |
|
51 |
+ * @param string $namespace |
|
52 |
+ * @param string|array $hints |
|
53 |
+ * @return void |
|
54 |
+ */ |
|
55 |
+ public function replaceNamespace($namespace, $hints); |
|
56 |
+ |
|
57 |
+ /** |
|
58 |
+ * Add a valid view extension to the finder. |
|
59 |
+ * |
|
60 |
+ * @param string $extension |
|
61 |
+ * @return void |
|
62 |
+ */ |
|
63 |
+ public function addExtension($extension); |
|
64 |
+ |
|
65 |
+ /** |
|
66 |
+ * Flush the cache of located views. |
|
67 |
+ * |
|
68 |
+ * @return void |
|
69 |
+ */ |
|
70 |
+ public function flush(); |
|
71 |
+} |