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

[#13468] inconsistent naming convention in dispatcher #13524

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added the getTaskSuffix method in the interface
  • Loading branch information
niden committed Oct 10, 2018
commit 20c777fb182b4755b7ca0426a8bdf6e518a10ca1
28 changes: 16 additions & 12 deletions phalcon/cli/dispatcherinterface.zep
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,38 @@ use Phalcon\DispatcherInterface as DispatcherInterfaceBase;
*/
interface DispatcherInterface extends DispatcherInterfaceBase
{
/**
* Returns the active task in the dispatcher
*/
public function getActiveTask() -> <TaskInterface>;

/**
* Sets the default task suffix
* Returns the latest dispatched controller
*/
public function setTaskSuffix(string taskSuffix);
public function getLastTask() -> <TaskInterface>;

/**
* Sets the default task name
* Gets last dispatched task name
*/
public function setDefaultTask(string taskName);
public function getTaskName() -> string;

/**
* Sets the task name to be dispatched
* Gets default task suffix
*/
public function setTaskName(string taskName);
public function getTaskSuffix() -> string;

/**
* Gets last dispatched task name
* Sets the default task name
*/
public function getTaskName() -> string;
public function setDefaultTask(string taskName);

/**
* Returns the latest dispatched controller
* Sets the task name to be dispatched
*/
public function getLastTask() -> <TaskInterface>;
public function setTaskName(string taskName);

/**
* Returns the active task in the dispatcher
* Sets the default task suffix
*/
public function getActiveTask() -> <TaskInterface>;
public function setTaskSuffix(string taskSuffix);
}