search hotlink icon profile hotlink icon
ma Public | 1.x.x

On This Page

The Valvoid\Maze\Compiler\Compiler object provides methods to manage and inspect the compiled router state.

Typical usage:

                use Valvoid\Box\Box;
use Valvoid\Maze\Compiler\Compiler;

$box = new Box;
$compiler = $box->get(Compiler::class);
            

Cache Method

Builds and stores the optimized route and configuration files in the cache directory.

                $compiler->cache();
            

Clear Method

Removes all compiled cache files.

                    $compiler->clear();
                

Routes Method

Returns compiled routes.

                $compiler->getRoutes();
            

Config Method

Returns compiled config.

                $compiler->getConfig();