src/watoki/cfg/cli/CreateUserConfigurationCommand.php
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 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 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 ) ; }
Creates a user configuration class to overwrite a default configuration
Creates a user configuration class to overwrite a default configuration