i have an issue by making backup from database (Postgresql 11) with Symfony(6.01) Command. I use also for that the Process Bundle of Symfony. Problem is, if the Controller Action calls the command to backup the database, it saves finally an empty SQL-File. There is also no errors in dev.log or Postgreql logfile. But when i print out the command
Tag: command
“php artisan myCommand” handling the post-install-cmd event returned with error code 1
I creaded a console command that will setup the database automatically based on user input and I added that command in post-install-cmd but when i run the composer install command it return error code 1. If i run the command manually like php artisan setupDB it work, I dont know what is the issue. May be I am adding my
Call php artisan custom:command with an argument at the end without specifying the ones before
Is there any way that if I have a command of this kind: To call it without specifying arg4, but with arg5? Something like: Of course, if I do it like above arg5_val will be interpreted like arg4_val and arg5 will be ignored. I hope my question is clear and it was not answered already. Did not even have a
Select Input TYPO3 v9 Symfony Command
I want to make a scheduler command in TYPO3 v9, the problem is, that I don’t know and can’t find how I can make a select input. This is what I have: Answer You cannot put user choice questions on the command options…, instead you have to use a ask method of helper with ChoiceQuestion object to In your commande
migrating a specific table in laravel
using command php artisan migrate migrates all the tables. but i have employees table that i migrated along with other tables. but it is not migrated (i cannot see it in phpmyadmin). now when i again use php artisan migrate command it displays nothing to migrate. How can i migrate that specific employees table? Answer For Specific File run this
Access Command OutputInterface within a Doctrine Fixtures Load
I’m generating a huge amount of data fixtures using the awesome Faker Library, also using lorempixel.com to have some random images in my Symfony2 project. This takes some time (currently ~ 10 Minutes), so I was wondering if it is possible to access the Command OutputInterface somehow through the container interface and print the progress this way instead of echo’ing