protected function generateClass($dir, $stub, array $arguments = [])
    {
        $this->line($this->colorize('Crafting:')." Generating [{$this->getClassname()}] class...");

        $base = $this->config->get('app.directory');
        $file = "{$base}/app/{$dir}/{$this->getClassname()}.php";

        if ($this->filesystem->exists($file)) {
            $this->confirm("[{$this->getClassname()}] class already exists. Want to overwrite?");
        }

        $template = $this->filesystem->get(__DIR__."/stubs/{$stub}");

        $this->filesystem->put($file, $this->stub->render($template, $arguments));

        $this->success("{$this->getClassname()} created successfully.");
    }
protected function generateClass($dir, $stub, array $arguments = [])
    {
        $this->line($this->colorize('Crafting:')." Generating [{$this->getClassname()}] class...");

        $base = $this->config->get('app.directory');
        $file = "{$base}/app/{$dir}/{$this->getClassname()}.php";

        if ($this->filesystem->exists($file)) {
            $this->confirm("[{$this->getClassname()}] class already exists. Want to overwrite?");
        }

        $template = $this->filesystem->get(__DIR__."/stubs/{$stub}");

        $this->filesystem->put($file, $this->stub->render($template, $arguments));

        $this->success("{$this->getClassname()} created successfully.");
    }
protected function generateClass ( $ dir , $ stub , array $ arguments = [ ] ) { $ this -> line ( $ this -> colorize ( 'Crafting:' ) . " Generating [{$this->getClassname()}] class..." ) ; $ base = $ this -> config -> get ( 'app.directory' ) ; $ file = "{$base}/app/{$dir}/{$this->getClassname()}.php" ; if ( $ this -> filesystem -> exists ( $ file ) ) { $ this -> confirm ( "[{$this->getClassname()}] class already exists. Want to overwrite?" ) ; } $ template = $ this -> filesystem -> get ( __DIR__ . "/stubs/{$stub}" ) ; $ this -> filesystem -> put ( $ file , $ this -> stub -> render ( $ template , $ arguments ) ) ; $ this -> success ( "{$this->getClassname()} created successfully." ) ; }
Generate class for singularity.

@param  string $dir
@param  string $stub
@param  array $arguments

@return void
Generate class for singularity .