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:
commit
7ff71b548b
@ -350,7 +350,7 @@ class BinaryFileResponse extends Response
|
|||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function deleteFileAfterSend($shouldDelete)
|
public function deleteFileAfterSend($shouldDelete = true)
|
||||||
{
|
{
|
||||||
$this->deleteFileAfterSend = $shouldDelete;
|
$this->deleteFileAfterSend = $shouldDelete;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user