Commit 81988ead authored by Fabien Potencier's avatar Fabien Potencier

merged branch vicb/fixtypo (PR #631)

This PR was merged into the master branch.

Commits
-------

829c8085 [Application] fix typo

Discussion
----------

[Application] fix typo
parents eb15c4b4 829c8085
...@@ -438,7 +438,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte ...@@ -438,7 +438,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
public function sendFile($file, $status = 200, $headers = array(), $contentDisposition = null) public function sendFile($file, $status = 200, $headers = array(), $contentDisposition = null)
{ {
if (!class_exists('Symfony\Component\HttpFoundation\BinaryFileResponse')) { if (!class_exists('Symfony\Component\HttpFoundation\BinaryFileResponse')) {
throw new \RuntimeException('The "senfFile" method is only supported as of Http Foundation 2.2.'); throw new \RuntimeException('The "sendFile" method is only supported as of Http Foundation 2.2.');
} }
return new BinaryFileResponse($file, $status, $headers, true, $contentDisposition); return new BinaryFileResponse($file, $status, $headers, true, $contentDisposition);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment