src/Way/Generators/Commands/GeneratorCommand.php
public function fire()
    {
        $filePathToGenerate = $this->getFileGenerationPath();

        try
        {
            $this->generator->make(
                $this->getTemplatePath(),
                $this->getTemplateData(),
                $filePathToGenerate
            );

            $this->info("Created: {$filePathToGenerate}");
        }

        catch (FileAlreadyExists $e)
        {
            $this->error("The file, {$filePathToGenerate}, already exists! I don't want to overwrite it.");
        }
    }
public function fire()
    {
        $filePathToGenerate = $this->getFileGenerationPath();

        try
        {
            $this->generator->make(
                $this->getTemplatePath(),
                $this->getTemplateData(),
                $filePathToGenerate
            );

            $this->info("Created: {$filePathToGenerate}");
        }

        catch (FileAlreadyExists $e)
        {
            $this->error("The file, {$filePathToGenerate}, already exists! I don't want to overwrite it.");
        }
    }
public function fire ( ) { $ filePathToGenerate = $ this -> getFileGenerationPath ( ) ; try { $ this -> generator -> make ( $ this -> getTemplatePath ( ) , $ this -> getTemplateData ( ) , $ filePathToGenerate ) ; $ this -> info ( "Created: {$filePathToGenerate}" ) ; } catch ( FileAlreadyExists $ e ) { $ this -> error ( "The file, {$filePathToGenerate}, already exists! I don't want to overwrite it." ) ; } }
Compile and generate the file.
Compile and generate the file .