Added prependPrefix to Group class & updated documentation.

This commit is contained in:
Simon Sessingø
2021-03-31 03:23:04 +02:00
parent 7adb4e8597
commit eccda10169
4 changed files with 28 additions and 36 deletions

View File

@@ -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());