src/Valkyrja/Events/NativeEvents.php
protected function setupFromCache(): void
    {
        // Set the application events with said file
        $cache = $this->app->config()['cache']['events']
            ?? require $this->app->config()['events']['cacheFilePath'];

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

        self::$events = unserialize(
            base64_decode($cache['events'], true),
            [
                'allowed_classes' => [
                    Listener::class,
                ],
            ]
        );
    }
Setup the events from cache.

@return void