Skip to content

Commit 25f4f57

Browse files
committed
Specify the URI of the Route
1 parent db8b042 commit 25f4f57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/WaterPipe/Routing/Route.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,15 @@ abstract class Route
5555
/**
5656
* Route constructor.
5757
*
58+
* @param string $uri The URI handled by this Route
59+
*
5860
* @throws \Exception
5961
*/
60-
public function __construct()
62+
public function __construct(string $uri)
6163
{
6264
$this->_request =& Request::capture();
6365
$this->_response = new Response();
66+
$this->_uri = $uri;
6467
}
6568

6669
/**

0 commit comments

Comments
 (0)