Beispiel #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);
 }
Beispiel #2
0
 public function add($name, Command $command)
 {
     parent::add($name, $command);
     $this->dependencies[$name] = array();
 }