You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DummyCommand.php 438B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: robin
  5. * Date: 11/24/15
  6. * Time: 12:15 AM
  7. */
  8. namespace App\Http\Business\Commands;
  9. class DummyCommand extends AbstractCommand
  10. {
  11. /**
  12. * @return bool
  13. */
  14. public function exec()
  15. {
  16. $data = $this->_command->getData();
  17. if (isset($data["Success"]) && !$data["Success"]) {
  18. abort(500, "Failed to execute command");
  19. }
  20. return true;
  21. }
  22. }