Sonata\ProductBundle\Menu\ProductMenuBuilder::__construct PHP Method

__construct() public method

Constructor.
public __construct ( Knp\Menu\FactoryInterface $factory, Sonata\Component\Product\ProductCategoryManagerInterface $categoryManager, Symfony\Component\Routing\RouterInterface $router )
$factory Knp\Menu\FactoryInterface
$categoryManager Sonata\Component\Product\ProductCategoryManagerInterface
$router Symfony\Component\Routing\RouterInterface
    public function __construct(FactoryInterface $factory, ProductCategoryManagerInterface $categoryManager, RouterInterface $router)
    {
        $this->factory = $factory;
        $this->categoryManager = $categoryManager;
        $this->router = $router;
    }