Advertisement
Guest User

Untitled

a guest
Mar 31st, 2021
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. // Команда которую запускаю, название tst:wf
  2.  
  3. protected function execute(InputInterface $input, OutputInterface $output)
  4. {
  5. file_put_contents($this->parameterBag->get('kernel.project_dir').'/1.txt',"1");
  6. }
  7.  
  8. //Команда которая запускает:
  9.  
  10. protected function execute(InputInterface $input, OutputInterface $output)
  11. {
  12. $process = Process::fromShellCommandline('php bin/console tst:wf');
  13. $process->run();
  14. if(!$process->isSuccessful()){
  15. throw new ProcessFailedException($process);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement