resolveCategories example

$this->categoryService = $categoryService;
    }

    /** * @return Emotion[] */
    public function getList(array $emotionIds, ShopContextInterface $context)
    {
        $emotions = $this->gateway->getList($emotionIds$context);
        $elements = $this->elementService->getList($emotionIds$context);

        $this->resolveCategories($emotions$context);
        $this->resolveShops($emotions);

        $result = [];
        foreach ($emotionIds as $emotionId) {
            if (!\array_key_exists($emotionId$emotions)) {
                continue;
            }

            $emotion = $emotions[$emotionId];

            if (\array_key_exists($emotionId$elements)) {
                
Home | Imprint | This part of the site doesn't use cookies.