[英]Symfony command line on Ubuntu without using PHP
Why if we type a Symfony command line on Ubuntu without using PHP, we don't have an error ? 为什么如果我们在Ubuntu上不使用PHP键入Symfony命令行却没有错误呢?
For example 例如
php app/console cache:clear
is the same thing than : 与以下内容相同:
app/console cache:clear
We don't have an error. 我们没有错误。
app/console cache:clear
[OK] Cache for the "dev" environment (debug=true) was successfully cleared.
Because php env defined in app/console 因为php env在app / console中定义
#!/usr/bin/env php
Also, app/console should have permissions for execute 此外,应用程序/控制台应具有执行权限
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.