Skip to content
New issue

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

Update Router.zep #16328

Merged
merged 2 commits into from Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions CHANGELOG-5.0.md
Expand Up @@ -3,12 +3,14 @@
## [5.6.1](https://github.com/phalcon/cphalcon/releases/tag/v5.6.0) (xxxx-xx-xx)

### Changed

-
- Changed `Phalcon\Cli\Router::setDefaultAction` and `Phalcon\Cli\Router::setDefaultModule` to return the object back for a fluent interface [#16328](https://github.com/phalcon/cphalcon/issues/16328)

### Added

### Fixed

- Fixed `/Db/Adapter/Pdo/Postgresql::describeColumns` to return the correct string back [#16371](https://github.com/phalcon/cphalcon/issues/16371)
- Fixed `Phalcon\Db\Adapter\Pdo\Postgresql::describeColumns()` to return the correct string back [#16371](https://github.com/phalcon/cphalcon/issues/16371)

### Removed

Expand Down
7 changes: 5 additions & 2 deletions phalcon/Cli/Router.zep
Expand Up @@ -461,17 +461,20 @@ class Router extends AbstractInjectionAware
/**
* Sets the default action name
*/
public function setDefaultAction(string actionName)
public function setDefaultAction(string actionName) -> <Router>
{
let this->defaultAction = actionName;

return this;
}

/**
* Sets the name of the default module
*/
public function setDefaultModule(string moduleName)
public function setDefaultModule(string moduleName) -> <Router>
{
let this->defaultModule = moduleName;
return this;
}

/**
Expand Down