Sets a new controller
@api
callable $controller:
\LogicException
public function setController($controller) {
// controller must be a callable
if (!is_callable($controller)) {
throw new \LogicException(sprintf('The controller must be a callable (%s given).', $this
->varToString($controller)));
}
$this->controller = $controller;
}