Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. $rootDir = $this->get('kernel')->getRootDir();
  2. $adk_process = new Process(
  3. 'php ../bin/console app:adkaction ' . $numcampaigns . ', ' . $timezone . ',' . $depdate);
  4. $adk_process->setWorkingDirectory($rootDir);
  5. $adk_process->setOptions(['suppress_errors' => false]);
  6. $adk_process->setTimeout(null);
  7. $adk_process->start();
  8.  
  9. while ($adk_process->isRunning()) {
  10. $currprogress = $adk_process->getIncrementalOutput();
  11. return $this->render('BackEnd/user.html.twig',[
  12. 'form'=>$form->createView(),
  13. 'currprogress' => $currprogress
  14. ]);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement