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