Skip to content

Instantly share code, notes, and snippets.

@norv
Created November 9, 2012 18:16
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