2

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

1 Answer 1

5

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.