【发布时间】:2017-04-20 08:55:54
【问题描述】:
我有自己的 symfony 控制台命令,其中一些以文件名作为参数。
例如。
$ php app/console mycommands:doTheThing /path/to/my/file.txt
我已经尝试使用/dev/fd/0 技巧来代替use a string 此处的文件,但它仍然无法正常工作。
例如。
$ php app/console mycommands:doTheThing php://dev/fd/0 <<<'myFileContents'
有人可以提供任何见解或帮助吗?
【问题讨论】:
标签: php symfony console heredoc herestring