Permalink
Browse files

restart command uses restart method instead of manual start-stop

  • Loading branch information...
1 parent 766a410 commit bbf3d6dbf1a6d42137a2b09caf2b786a414000a1 @jessegreathouse jessegreathouse committed Jul 21, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 Command/ExampleRestartCommand.php
@@ -26,10 +26,8 @@ protected function configure()
protected function execute(InputInterface $input, OutputInterface $output)
{
$daemon = new Daemon($this->getContainer()->getParameter('example.daemon.options'));
- $daemon->stop();
- $daemon->iterate(5);
- $daemon->start();
+ $daemon->reStart();
while ($daemon->isRunning()) {
$this->getContainer()->get('example.control')->run();

0 comments on commit bbf3d6d

Please sign in to comment.