Created
October 19, 2014 10:12
-
-
Save sagikazarmark/d3db9a9e93fa61482b11 to your computer and use it in GitHub Desktop.
Task example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Task implements TaskInterface | |
{ | |
public function run() | |
{ | |
// ... some basic logic | |
// emit is just an example, the command logic is important here | |
$result = $this->emit(new InputCommand('Please give me some input!')); | |
// ... so something with your result | |
$this->emit(new OutputCommand('Here is the resule')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment