Elcodi\Store\ProductBundle\Services\StoreCategoryTree::__construct PHP Method

__construct() public method

Construct method
public __construct ( Elcodi\Component\Product\Services\CategoryTree $categoryTreeService, boolean $loadOnlyCategoriesWithProducts, string $key, Elcodi\Component\Language\Entity\Interfaces\LocaleInterface $locale )
$categoryTreeService Elcodi\Component\Product\Services\CategoryTree The category tree service
$loadOnlyCategoriesWithProducts boolean Load only categories with products
$key string Key where to store info
$locale Elcodi\Component\Language\Entity\Interfaces\LocaleInterface Locale of the categories
    public function __construct(CategoryTree $categoryTreeService, $loadOnlyCategoriesWithProducts, $key, LocaleInterface $locale)
    {
        $this->categoryTreeService = $categoryTreeService;
        $this->loadOnlyCategoriesWithProducts = $loadOnlyCategoriesWithProducts;
        $this->key = $key;
        $this->locale = $locale;
    }