daemon.php 382 B

1234567891011121314151617181920
  1. #!/usr/bin/env php
  2. <?php
  3. require dirname(__FILE__) . '/vendor/autoload.php';
  4. define('DOCUMENT_ROOT', dirname(__FILE__));
  5. use Movim\Bootstrap;
  6. use Movim\Console\DaemonCommand;
  7. use Symfony\Component\Console\Application;
  8. $bootstrap = new Bootstrap;
  9. $bootstrap->boot();
  10. $daemon = new DaemonCommand;
  11. $application = new Application;
  12. $application->add($daemon);
  13. $application->run();