Created
November 9, 2012 18:16
-
-
Save norv/4047291 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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