mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-15 18:23:26 +03:00
Added prependPrefix to Group class & updated documentation.
This commit is contained in:
@@ -118,7 +118,7 @@ class EventHandlerTest extends \PHPUnit\Framework\TestCase
|
||||
|
||||
switch (true) {
|
||||
case $data->route instanceof \Pecee\SimpleRouter\Route\ILoadableRoute:
|
||||
$data->route->setUrl($basePath . $data->route->getUrl());
|
||||
$data->route->prependUrl($basePath);
|
||||
break;
|
||||
case $data->route instanceof \Pecee\SimpleRouter\Route\IGroupRoute:
|
||||
$data->route->setPrefix($basePath . $data->route->getPrefix());
|
||||
|
||||
Reference in New Issue
Block a user