We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
из роутер возвращать не массив а обьект.
RouteObject -> getHandler() -> getParams() -> getMethod() -> getName() -> invoke()
в итоге выкинуть лишний код из app и сделать компонент более портируемым.
if ($route = $router->match()) { $this->eventTrigger("application.beforeRunController", [$route], $this); $route->invoke(); $this->eventTrigger("application.afterRunController", [$route], $this); }
The text was updated successfully, but these errors were encountered:
Редиректы на trailing slash тоже надо выбросить из роутера кмк
Sorry, something went wrong.
я бы перекинул на мидвару.
Да, так и надо)
No branches or pull requests
из роутер возвращать не массив а обьект.
RouteObject
-> getHandler()
-> getParams()
-> getMethod()
-> getName()
-> invoke()
в итоге выкинуть лишний код из app и сделать компонент более портируемым.
The text was updated successfully, but these errors were encountered: