getObjName() public method

Generate names
public getObjName ( string $config = 'Name' ) : mixed
$config string
return mixed
Ejemplo n.º 1
0
 /**
  * Start make controller.
  *
  * @return void
  */
 private function start()
 {
     $name = $this->scaffoldCommandObj->getObjName('Name') . 'Controller';
     $path = $this->getPath($name, 'controller');
     if ($this->files->exists($path)) {
         return $this->scaffoldCommandObj->comment("x {$name}");
     }
     $this->makeDirectory($path);
     $this->files->put($path, $this->compileControllerStub());
     $this->scaffoldCommandObj->info('+ Controller');
 }