mirror of
https://github.com/openvk/chandler.git
synced 2025-03-29 12:38:12 +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.
|
||||
{
|
||||
if (($split = preg_split("/@/", $route)) === false) {
|
||||
if (($split = preg_split("/->/", $route)) === false) {
|
||||
throw new Exception(); // TODO: Add an exception message.
|
||||
} else {
|
||||
return $split;
|
||||
|
|
Loading…
Reference in a new issue