/** * Creates a user configuration class to overwrite a default configuration */ public function doExecute(Console $console) { if (file_exists($this->targetFile)) { $console->out->writeLine('Already exists'); return; } $creator = new Creator(); $creator->createStub($this->baseClass, $this->targetFile); $console->out->writeLine('Created user configuration in ' . $this->targetFile); }
public function whenICreateAUserConfigurationFor_Into($baseClass, $fileName) { $creator = new Creator(); $creator->createStub($baseClass, $this->file->getFullPath($fileName)); }