简体   繁体   中英

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 ?

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

#!/usr/bin/env php

Also, app/console should have permissions for execute

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM