Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
if (!is_callable($callable)) {
throw new \InvalidArgumentException(
'The controller for URI "' . $request->getPathInfo() . '" is not callable. '.
$this->getControllerError($callable)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment