Ouzo\Uri\JsUriHelperGenerator::generate PHP Method

generate() public static method

public static generate ( )
    public static function generate()
    {
        return new self();
    }

Usage Example

Exemplo n.º 1
0
 private function generateJsHelper()
 {
     $routesJSHelperPath = $this->_input->getOption('path');
     $routesJSHelperPath = Path::join($routesJSHelperPath, 'generated_uri_helper.js');
     if (JsUriHelperGenerator::generate()->saveToFile($routesJSHelperPath) !== false) {
         $this->_output->writeln("File with JS uri helpers is generated in <info>{$routesJSHelperPath}</info>");
     }
 }
All Usage Examples Of Ouzo\Uri\JsUriHelperGenerator::generate