# Wie kann ich die NavigationLoaderInterface's $depth ändern?

**URL:** <https://forum.shopware.com/t/wie-kann-ich-die-navigationloaderinterfaces-depth-aendern/89290>\
**Category:** Shopware 6 (German)\
**Tags:** programming\
**Created:** [21. Juli 2021 um 08:53 UTC](https://forum.shopware.com/t/wie-kann-ich-die-navigationloaderinterfaces-depth-aendern/89290 "2021-07-21T08:53:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arash.yazdani59](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/arash.yazdani59/32/13954_2.png) [@arash.yazdani59](https://forum.shopware.com/u/arash.yazdani59)\
**Post date:** [21. Juli 2021 um 08:53 UTC](https://forum.shopware.com/t/wie-kann-ich-die-navigationloaderinterfaces-depth-aendern/89290/1 "2021-07-21T08:53:37Z")

</div>

Ich möchte die NavigationLoaderInterface oder NavigationLoader $depth zu 10 ändern  
aber ich kann die Services nicht decorieren.

kann jemand mir helfen?

```auto
<?php declare(strict_types=1);

namespace Shopware\Core\Content\Category\Service;

use Shopware\Core\Content\Category\Tree\Tree;
use Shopware\Core\System\Annotation\Concept\ExtensionPattern\Decoratable;
use Shopware\Core\System\SalesChannel\SalesChannelContext;

/**
 * @Decoratable()
 */
interface NavigationLoaderInterface
{
    /**
     * Returns the first two levels of the category tree, as well as all parents of the active category
     * and the active categories first level of children.
     * The provided active id will be marked as selected
     */
    public function load(string $activeId, SalesChannelContext $context, string $rootId, int $depth = 2): Tree;
}

```
