mirror of
https://github.com/openvk/chandler.git
synced 2025-03-31 21:43:59 +03:00
Fixing the router.
This commit is contained in:
parent
f0b8c06a32
commit
2a55c5933c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue