Skip to content

Instantly share code, notes, and snippets.

@patrickallaert
Created June 30, 2017 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickallaert/a8893137c0e1e7a60ebf25443d48adf0 to your computer and use it in GitHub Desktop.
Save patrickallaert/a8893137c0e1e7a60ebf25443d48adf0 to your computer and use it in GitHub Desktop.
<?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