Debian Codegraph @

lib/3rdParty/composer/illuminate/contracts/Routing/UrlGenerator.php

raw symbols SCIP
1 <?php
2
3 namespace Illuminate\Contracts\Routing;
4
5 interface UrlGenerator
6 {
7 /**
8 * Get the current URL for the request.
9 *
10 * @return string
11 */
12 public function current();
13
14 /**
15 * Get the URL for the previous request.
16 *
17 * @param mixed $fallback
18 * @return string
19 */
20 public function previous($fallback = false);
21
22 /**
23 * Generate an absolute URL to the given path.
24 *
25 * @param string $path
26 * @param mixed $extra
27 * @param bool|null $secure
28 * @return string
29 */
30 public function to($path, $extra = [], $secure = null);
31
32 /**
33 * Generate a secure, absolute URL to the given path.
34 *
35 * @param string $path
36 * @param array $parameters
37 * @return string
38 */
39 public function secure($path, $parameters = []);
40
41 /**
42 * Generate the URL to an application asset.
43 *
44 * @param string $path
45 * @param bool|null $secure
46 * @return string
47 */
48 public function asset($path, $secure = null);
49
50 /**
51 * Get the URL to a named route.
52 *
53 * @param string $name
54 * @param mixed $parameters
55 * @param bool $absolute
56 * @return string
57 *
58 * @throws \InvalidArgumentException
59 */
60 public function route($name, $parameters = [], $absolute = true);
61
62 /**
63 * Create a signed route URL for a named route.
64 *
65 * @param string $name
66 * @param mixed $parameters
67 * @param \DateTimeInterface|\DateInterval|int|null $expiration
68 * @param bool $absolute
69 * @return string
70 *
71 * @throws \InvalidArgumentException
72 */
73 public function signedRoute($name, $parameters = [], $expiration = null, $absolute = true);
74
75 /**
76 * Create a temporary signed route URL for a named route.
77 *
78 * @param string $name
79 * @param \DateTimeInterface|\DateInterval|int $expiration
80 * @param array $parameters
81 * @param bool $absolute
82 * @return string
83 */
84 public function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true);
85
86 /**
87 * Generate an absolute URL with the given query parameters.
88 *
89 * @param string $path
90 * @param array $query
91 * @param mixed $extra
92 * @param bool|null $secure
93 * @return string
94 */
95 public function query($path, $query = [], $extra = [], $secure = null);
96
97 /**
98 * Get the URL to a controller action.
99 *
100 * @param string|array $action
101 * @param mixed $parameters
102 * @param bool $absolute
103 * @return string
104 */
105 public function action($action, $parameters = [], $absolute = true);
106
107 /**
108 * Get the root controller namespace.
109 *
110 * @return string
111 */
112 public function getRootControllerNamespace();
113
114 /**
115 * Set the root controller namespace.
116 *
117 * @param string $rootNamespace
118 * @return $this
119 */
120 public function setRootControllerNamespace($rootNamespace);
121 }