Skip to content

Instantly share code, notes, and snippets.

@grEvenX
Forked from anonymous/a.php.txt
Created May 22, 2012 07:51
Show Gist options
  • Save grEvenX/2767409 to your computer and use it in GitHub Desktop.
Save grEvenX/2767409 to your computer and use it in GitHub Desktop.
a.php
if (false === $pos = strrpos(get_class($this->controller[0]), '\\__CG__\\')) {
$class = $this->controller[0];
} else {
$class = substr(get_class($this->controller[0]), $pos + 8);
}
$this->params = $this->queryParamReader->read(new \ReflectionClass($class), $this->controller[1]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment