src/Router.php
public function getDispatcher(): Dispatcher
    {
        if ($this->forceReload || !file_exists($this->cacheFile)) {
            $dispatchData = $this->buildCache();
        } else {
            /** @noinspection PhpIncludeInspection */
            $dispatchData = require $this->cacheFile;
        }

        return call_user_func($this->dispatcherFactory, $dispatchData);
    }
public function getDispatcher(): Dispatcher
    {
        if ($this->forceReload || !file_exists($this->cacheFile)) {
            $dispatchData = $this->buildCache();
        } else {
            /** @noinspection PhpIncludeInspection */
            $dispatchData = require $this->cacheFile;
        }

        return call_user_func($this->dispatcherFactory, $dispatchData);
    }
Gets the dispatcher

@return \FastRoute\Dispatcher The dispatcher