protected function makeRouteFile($routeDirPath, $filename)
    {
        if (!$this->files->isDirectory($routeDirPath)) {
            $this->files->makeDirectory($routeDirPath, 0777, true, true);
        }

        if (!$this->files->exists($routeDirPath.'/'.$filename)) {
            $this->generateFile($routeDirPath.'/'.$filename, "<?php\n");
        }

        return $routeDirPath.'/'.$filename;
    }
protected function makeRouteFile($routeDirPath, $filename)
    {
        if (!$this->files->isDirectory($routeDirPath)) {
            $this->files->makeDirectory($routeDirPath, 0777, true, true);
        }

        if (!$this->files->exists($routeDirPath.'/'.$filename)) {
            $this->generateFile($routeDirPath.'/'.$filename, "<?php\n");
        }

        return $routeDirPath.'/'.$filename;
    }
protected function makeRouteFile ( $ routeDirPath , $ filename ) { if ( ! $ this -> files -> isDirectory ( $ routeDirPath ) ) { $ this -> files -> makeDirectory ( $ routeDirPath , 0777 , true , true ) ; } if ( ! $ this -> files -> exists ( $ routeDirPath . '/' . $ filename ) ) { $ this -> generateFile ( $ routeDirPath . '/' . $ filename , "<?php\n" ) ; } return $ routeDirPath . '/' . $ filename ; }
Create php route file if not exists

@param  string $routeDirPath Absolute directory path
@param  string $filename     File name to be created

@return string               Absolute path of create route file
Create php route file if not exists