Skip to content

Commit 5f623d6

Browse files
committed
remove unused route constants
1 parent cb28690 commit 5f623d6

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/Route.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@
99
*/
1010
class Route
1111
{
12-
const URI = 'uri';
13-
const METHOD = 'method';
14-
const CONTROLLER = 'controller';
15-
const MIDDLEWARE = 'middleware';
16-
const DOMAIN = 'domain';
17-
const PREFIX = 'prefix';
18-
const NAME = 'name';
19-
2012
/**
2113
* @var string|null
2214
*/

src/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function group(array $attributes, Closure $routes): self
135135

136136
// Set middleware for the group
137137
if (isset($attributes[GroupAttributes::MIDDLEWARE])) {
138-
if (is_array($attributes[Route::MIDDLEWARE]) == false) {
138+
if (is_array($attributes[GroupAttributes::MIDDLEWARE]) == false) {
139139
$attributes[GroupAttributes::MIDDLEWARE] = [$attributes[GroupAttributes::MIDDLEWARE]];
140140
}
141141

0 commit comments

Comments
 (0)