This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Symfony\Component\HttpFoundation\File\File; | |
| /* | |
| This class is a hack/workaround for the InvalidArgumentException "The filename fallback must only contain ASCII characters." | |
| for file downloads with non-ASCII filenames. Since the Response::download() method doesn't allow specifying a fallback name, | |
| this is the only realistic option, aside from extending, rewriting, and maintaining a bunch of framework classes, or | |
| modifying the framework itself. | |
| */ |
NewerOlder