src/Neutrino/Foundation/Cli/Tasks/RouteCacheTask.php
public function mainAction()
    {
        $this->output->write(Decorate::notice(str_pad('Generating http-routes cache', 40, ' ')), false);

        try {
            $router = $this->loadHttpRouter();

            $str = $this->compile($router);

            file_put_contents(BASE_PATH . '/bootstrap/compile/http-routes.php', "<?php\n$str");

            $this->info("Success");
        } catch (\Exception $e) {
            $this->error("Error");
            $this->block([$e->getMessage()], 'error');

            @unlink(BASE_PATH . '/bootstrap/compile/http-routes.php');
        }
    }
public function mainAction()
    {
        $this->output->write(Decorate::notice(str_pad('Generating http-routes cache', 40, ' ')), false);

        try {
            $router = $this->loadHttpRouter();

            $str = $this->compile($router);

            file_put_contents(BASE_PATH . '/bootstrap/compile/http-routes.php', "<?php\n$str");

            $this->info("Success");
        } catch (\Exception $e) {
            $this->error("Error");
            $this->block([$e->getMessage()], 'error');

            @unlink(BASE_PATH . '/bootstrap/compile/http-routes.php');
        }
    }
Generate a cache for http kernel's routes.