createFilters example

if ($method === 'cli') {
            return [
                'before' => [],
                'after'  => [],
            ];
        }

        $request = Services::request(null, false);
        $request->setMethod($method);

        $router  = $this->createRouter($request);
        $filters = $this->createFilters($request);

        $finder = new FilterFinder($router$filters);

        return $finder->find($uri);
    }

    private function createRouter(Request $request): Router
    {
        $routes = Services::routes();

        if ($this->resetRoutes) {
            
Home | Imprint | This part of the site doesn't use cookies.