M
M
Mariik2016-05-27 17:24:38
symfony
Mariik, 2016-05-27 17:24:38

How to make a Symfony/Console component not terminate after a command is executed?

Good afternoon.
Symphony has a wonderful component for building console applications (Symfony / Console)
But the trouble is that it stops working immediately after the Command::Execute class method is executed.
There is some way not to exit the console until a certain command? like php console:exit ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2016-05-27
@AloneCoder

Wrap the code of the execute method in while (true) {} =)
But seriously, looking for ways to do this is a bad solution to the problem, whatever it is

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question