protected function setupFromCache(): void
    {
        // Set the application routes with said file
        $cache = $this->app->config()['cache']['routing']
            ?? require $this->app->config()['routing']['cacheFilePath'];

        self::$collection = unserialize(
            base64_decode($cache['collection'], true),
            [
                'allowed_classes' => [
                    RouteCollection::class,
                    Route::class,
                ],
            ]
        );
    }
protected function setupFromCache(): void
    {
        // Set the application routes with said file
        $cache = $this->app->config()['cache']['routing']
            ?? require $this->app->config()['routing']['cacheFilePath'];

        self::$collection = unserialize(
            base64_decode($cache['collection'], true),
            [
                'allowed_classes' => [
                    RouteCollection::class,
                    Route::class,
                ],
            ]
        );
    }
protected function setupFromCache ( ) : void { // Set the application routes with said file $ cache = $ this -> app -> config ( ) [ 'cache' ] [ 'routing' ] ?? require $ this -> app -> config ( ) [ 'routing' ] [ 'cacheFilePath' ] ; self :: $ collection = unserialize ( base64_decode ( $ cache [ 'collection' ] , true ) , [ 'allowed_classes' => [ RouteCollection :: class , Route :: class , ] , ] ) ; }
Setup the router from cache.

@return void
Setup the router from cache .