public function compile($outFile)
    {
        // compile routes to php file as a cache.
        usort($this->mux->routes, array('Pux\\MuxCompiler', 'sort_routes'));

        $code = $this->mux->export();

        return file_put_contents($outFile, '<?php return '.$code.'; /* version */');
    }
public function compile($outFile)
    {
        // compile routes to php file as a cache.
        usort($this->mux->routes, array('Pux\\MuxCompiler', 'sort_routes'));

        $code = $this->mux->export();

        return file_put_contents($outFile, '<?php return '.$code.'; /* version */');
    }
public function compile ( $ outFile ) { // compile routes to php file as a cache. usort ( $ this -> mux -> routes , array ( 'Pux\\MuxCompiler' , 'sort_routes' ) ) ; $ code = $ this -> mux -> export ( ) ; return file_put_contents ( $ outFile , '<?php return ' . $ code . '; /* version */' ) ; }
Compile merged routes to file.
Compile merged routes to file .