Blame view

public/vendor/illuminate/contracts/Routing/Registrar.php 2.63 KB
86143e36f   Андрей Ларионов   Коммит вторник
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
  <?php
  
  namespace Illuminate\Contracts\Routing;
  
  interface Registrar
  {
      /**
       * Register a new GET route with the router.
       *
       * @param  string  $uri
       * @param  array|string|callable  $action
       * @return \Illuminate\Routing\Route
       */
      public function get($uri, $action);
  
      /**
       * Register a new POST route with the router.
       *
       * @param  string  $uri
       * @param  array|string|callable  $action
       * @return \Illuminate\Routing\Route
       */
      public function post($uri, $action);
  
      /**
       * Register a new PUT route with the router.
       *
       * @param  string  $uri
       * @param  array|string|callable  $action
       * @return \Illuminate\Routing\Route
       */
      public function put($uri, $action);
  
      /**
       * Register a new DELETE route with the router.
       *
       * @param  string  $uri
       * @param  array|string|callable  $action
       * @return \Illuminate\Routing\Route
       */
      public function delete($uri, $action);
  
      /**
       * Register a new PATCH route with the router.
       *
       * @param  string  $uri
       * @param  array|string|callable  $action
       * @return \Illuminate\Routing\Route
       */
      public function patch($uri, $action);
  
      /**
       * Register a new OPTIONS route with the router.
       *
       * @param  string  $uri
       * @param  array|string|callable  $action
       * @return \Illuminate\Routing\Route
       */
      public function options($uri, $action);
  
      /**
       * Register a new route with the given verbs.
       *
       * @param  array|string  $methods
       * @param  string  $uri
       * @param  array|string|callable  $action
       * @return \Illuminate\Routing\Route
       */
      public function match($methods, $uri, $action);
  
      /**
       * Route a resource to a controller.
       *
       * @param  string  $name
       * @param  string  $controller
       * @param  array  $options
       * @return \Illuminate\Routing\PendingResourceRegistration
       */
      public function resource($name, $controller, array $options = []);
  
      /**
       * Create a route group with shared attributes.
       *
       * @param  array  $attributes
       * @param  \Closure|string  $routes
       * @return void
       */
      public function group(array $attributes, $routes);
  
      /**
       * Substitute the route bindings onto the route.
       *
       * @param  \Illuminate\Routing\Route  $route
       * @return \Illuminate\Routing\Route
       */
      public function substituteBindings($route);
  
      /**
       * Substitute the implicit Eloquent model bindings for the route.
       *
       * @param  \Illuminate\Routing\Route  $route
       * @return void
       */
      public function substituteImplicitBindings($route);
  }