Skip to content

Commit

Permalink
Update Router.zep
Browse files Browse the repository at this point in the history
  • Loading branch information
zikezhang authored Apr 21, 2023
1 parent fc183e1 commit 577aca1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions phalcon/Cli/Router.zep
Original file line number Diff line number Diff line change
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

0 comments on commit 577aca1

Please sign in to comment.