1
1
<?php
2
2
3
- namespace Hyde \Framework \Modules \ Routing ;
3
+ namespace Hyde \Framework \Contracts ;
4
4
5
- use Hyde \Framework \Contracts \PageContract ;
6
5
use Illuminate \Support \Collection ;
7
6
8
7
/**
9
8
* This contract defines the static facade methods for the Route class.
10
9
*
11
- * @see \Hyde\Framework\Modules\Routing \RouteContract for the interface that each route model must implement.
10
+ * @see \Hyde\Framework\Contracts \RouteContract for the interface that each route model must implement.
12
11
*/
13
12
interface RouteFacadeContract
14
13
{
@@ -18,46 +17,46 @@ interface RouteFacadeContract
18
17
* Alias for static::getFromKey().
19
18
*
20
19
* @param string $routeKey Example: posts/foo.md
21
- * @return \Hyde\Framework\Modules\Routing \RouteContract
20
+ * @return \Hyde\Framework\Contracts \RouteContract
22
21
*
23
- * @throws \Hyde\Framework\Modules\Routing \RouteNotFoundException
22
+ * @throws \Hyde\Framework\Exceptions \RouteNotFoundException
24
23
*/
25
24
public static function get (string $ routeKey ): RouteContract ;
26
25
27
26
/**
28
27
* Get a route from the Router index for the specified route key.
29
28
*
30
29
* @param string $routeKey Example: posts/foo.md
31
- * @return \Hyde\Framework\Modules\Routing \RouteContract
30
+ * @return \Hyde\Framework\Contracts \RouteContract
32
31
*
33
- * @throws \Hyde\Framework\Modules\Routing \RouteNotFoundException
32
+ * @throws \Hyde\Framework\Exceptions \RouteNotFoundException
34
33
*/
35
34
public static function getFromKey (string $ routeKey ): RouteContract ;
36
35
37
36
/**
38
37
* Get a route from the Router index for the specified source file path.
39
38
*
40
39
* @param string $sourceFilePath Example: _posts/foo.md
41
- * @return \Hyde\Framework\Modules\Routing \RouteContract
40
+ * @return \Hyde\Framework\Contracts \RouteContract
42
41
*
43
- * @throws \Hyde\Framework\Modules\Routing \RouteNotFoundException
42
+ * @throws \Hyde\Framework\Exceptions \RouteNotFoundException
44
43
*/
45
44
public static function getFromSource (string $ sourceFilePath ): RouteContract ;
46
45
47
46
/**
48
47
* Get a route from the Router index for the supplied page model.
49
48
*
50
49
* @param \Hyde\Framework\Contracts\PageContract $page
51
- * @return \Hyde\Framework\Modules\Routing \RouteContract
50
+ * @return \Hyde\Framework\Contracts \RouteContract
52
51
*
53
- * @throws \Hyde\Framework\Modules\Routing \RouteNotFoundException
52
+ * @throws \Hyde\Framework\Exceptions \RouteNotFoundException
54
53
*/
55
54
public static function getFromModel (PageContract $ page ): RouteContract ;
56
55
57
56
/**
58
57
* Get all routes from the Router index.
59
58
*
60
- * @return \Illuminate\Support\Collection<\Hyde\Framework\Modules\Routing \RouteContract>
59
+ * @return \Illuminate\Support\Collection<\Hyde\Framework\Contracts \RouteContract>
61
60
*/
62
61
public static function all (): Collection ;
63
62
}
0 commit comments