Example #1
0
 public function givenTheCommand_WithTheBody($name, $body)
 {
     eval("class {$name} extends \\watoki\\cli\\commands\\DefaultCommand {\n            {$body}\n        }");
     $this->command = new $name();
     $this->commandGroup->add($name, $this->command);
 }
Example #2
0
 public function add($name, Command $command)
 {
     parent::add($name, $command);
     $this->dependencies[$name] = array();
 }