Skip to content

Instantly share code, notes, and snippets.

@robap
Created March 23, 2012 13:01
Show Gist options
  • Save robap/2170451 to your computer and use it in GitHub Desktop.
Save robap/2170451 to your computer and use it in GitHub Desktop.
alternative php-router dispatcher
<?php
class myDispatcher extends Dispatcher
{
protected function dispatchController($class, $method, $args, $context = null)
{
$obj = new $class($context);
return call_user_func(array($obj, $method), array_values($args));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment