Skip to content

Instantly share code, notes, and snippets.

@norv
Created November 9, 2012 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norv/4047291 to your computer and use it in GitHub Desktop.
Save norv/4047291 to your computer and use it in GitHub Desktop.
abstract class Controller
{
abstract function dispatch();
}
class BreezeSomething extends Controller
{
function dispatch()
{
// ...
}
}
class BreezeSomethingElse extends Controller
{
function dispatch()
{
// ...
}
}
// Every action controller would be called by instantiating the respective class
// ($actions as you have it would map action=something to [Something] class),
// and calling dispatch() on it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment