minor #26465 Default deleteFileAfterSend() to true (nowendwell)

This PR was merged into the 4.1-dev branch.

Discussion
----------

Default deleteFileAfterSend() to true

This should default to true when called since there is only one option.

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | N/A
| Fixed tickets | N/A
| License       | MIT
| Doc PR        |

<!--
* Defaults deleteFileAfterSend() to true
-->

Commits
-------

1de6f738ef Default deleteFileAfterSend() to true
This commit is contained in:
Fabien Potencier 2018-03-11 13:21:30 -05:00
commit 7ff71b548b

View File

@ -350,7 +350,7 @@ class BinaryFileResponse extends Response
*
* @return $this
*/
public function deleteFileAfterSend($shouldDelete)
public function deleteFileAfterSend($shouldDelete = true)
{
$this->deleteFileAfterSend = $shouldDelete;