public function index(UrlParamsProcessor $processor)
    {
        $this->authorize('readList', Content::class);

        // @TODO Implement contents/{id}/tree
        $processor
            ->addFilter(new BoolParser('only_categories'))
            ->process($this->request);

        Resource::wrap('data');
        return (new ContentCollection($this->repository->getTree($processor->buildQueryBuilder())));
    }