Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Routing;
4
 
5
use Illuminate\Http\Request;
6
 
7
interface RouteCollectionInterface
8
{
9
    /**
10
     * Add a Route instance to the collection.
11
     *
12
     * @param  \Illuminate\Routing\Route  $route
13
     * @return \Illuminate\Routing\Route
14
     */
15
    public function add(Route $route);
16
 
17
    /**
18
     * Refresh the name look-up table.
19
     *
20
     * This is done in case any names are fluently defined or if routes are overwritten.
21
     *
22
     * @return void
23
     */
24
    public function refreshNameLookups();
25
 
26
    /**
27
     * Refresh the action look-up table.
28
     *
29
     * This is done in case any actions are overwritten with new controllers.
30
     *
31
     * @return void
32
     */
33
    public function refreshActionLookups();
34
 
35
    /**
36
     * Find the first route matching a given request.
37
     *
38
     * @param  \Illuminate\Http\Request  $request
39
     * @return \Illuminate\Routing\Route
40
     *
41
     * @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
42
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
43
     */
44
    public function match(Request $request);
45
 
46
    /**
47
     * Get routes from the collection by method.
48
     *
49
     * @param  string|null  $method
50
     * @return \Illuminate\Routing\Route[]
51
     */
52
    public function get($method = null);
53
 
54
    /**
55
     * Determine if the route collection contains a given named route.
56
     *
57
     * @param  string  $name
58
     * @return bool
59
     */
60
    public function hasNamedRoute($name);
61
 
62
    /**
63
     * Get a route instance by its name.
64
     *
65
     * @param  string  $name
66
     * @return \Illuminate\Routing\Route|null
67
     */
68
    public function getByName($name);
69
 
70
    /**
71
     * Get a route instance by its controller action.
72
     *
73
     * @param  string  $action
74
     * @return \Illuminate\Routing\Route|null
75
     */
76
    public function getByAction($action);
77
 
78
    /**
79
     * Get all of the routes in the collection.
80
     *
81
     * @return \Illuminate\Routing\Route[]
82
     */
83
    public function getRoutes();
84
 
85
    /**
86
     * Get all of the routes keyed by their HTTP verb / method.
87
     *
88
     * @return array
89
     */
90
    public function getRoutesByMethod();
91
 
92
    /**
93
     * Get all of the routes keyed by their name.
94
     *
95
     * @return \Illuminate\Routing\Route[]
96
     */
97
    public function getRoutesByName();
98
}