Fixing the router.

This commit is contained in:
Ilya Bakhlin 2022-01-08 23:52:26 +01:00
parent f0b8c06a32
commit 2a55c5933c

View file

@ -231,7 +231,7 @@ class Router extends Singleton
*/ */
public function split(string $route): array // IMPROVE: Make this method private. public function split(string $route): array // IMPROVE: Make this method private.
{ {
if (($split = preg_split("/@/", $route)) === false) { if (($split = preg_split("/->/", $route)) === false) {
throw new Exception(); // TODO: Add an exception message. throw new Exception(); // TODO: Add an exception message.
} else { } else {
return $split; return $split;