Adapter/PlentymarketsAdapter/ServiceBus/QueryHandler/Manufacturer/FetchManufacturerQueryHandler.php
public function handle(QueryInterface $query)
    {
        $identity = $this->identityService->findOneBy([
            'objectIdentifier' => $query->getObjectIdentifier(),
            'objectType' => Manufacturer::TYPE,
            'adapterName' => PlentymarketsAdapter::NAME,
        ]);

        if (null === $identity) {
            return [];
        }

        $element = $this->client->request('GET', 'items/manufacturers/' . $identity->getAdapterIdentifier());

        $result = $this->manufacturerResponseParser->parse($element);

        return array_filter($result);
    }
public function handle(QueryInterface $query)
    {
        $identity = $this->identityService->findOneBy([
            'objectIdentifier' => $query->getObjectIdentifier(),
            'objectType' => Manufacturer::TYPE,
            'adapterName' => PlentymarketsAdapter::NAME,
        ]);

        if (null === $identity) {
            return [];
        }

        $element = $this->client->request('GET', 'items/manufacturers/' . $identity->getAdapterIdentifier());

        $result = $this->manufacturerResponseParser->parse($element);

        return array_filter($result);
    }
{@inheritdoc}

@var FetchTransferObjectQuery $query