<?php

use BBRouter\RouteCollection as RouteCollection;


RouteCollection::add('CLI', '/core/purge', function(){
    echo "Purging Everything\n";
});

RouteCollection::add('CLI', '/core/purge/[h:module]', function($module){
    echo "Purgin $module\n";
});

RouteCollection::add('CLI', '/core/routes', function(){
    foreach(RouteCollection::return_routes() as $route){
        echo str_pad( implode(',', $route->_verb), 10) . "| $route->_uri \n";
    }
});

RouteCollection::add('CLI', '/core/generator', function(){

    include_once 'GeneratorController.php';
    last_class()->menu();
    
});