Make Controller::httpNotFound() variadic

refs #9644
This commit is contained in:
Eric Lippmann 2015-07-28 10:40:02 +02:00
parent 2c8235d486
commit 78285b95a3
1 changed files with 3 additions and 2 deletions

View File

@ -53,13 +53,14 @@ class Controller extends ModuleActionController
/**
* Immediately respond w/ HTTP 404
*
* @param $message
* @param string $message Exception message or exception format string
* @param mixed ...$arg Format string argument
*
* @throws HttpNotFoundException
*/
public function httpNotFound($message)
{
throw new HttpNotFoundException($message);
throw HttpNotFoundException::create(func_get_args());
}
/**