protected function fetchResources(bool $cacheContent = false)
    {
        $resources = [
            $this->client->getSpace(),
            $this->client->getEnvironment(),
        ];

        $query = (new Query())
            ->setLimit(100)
        ;
        foreach ($this->client->getContentTypes($query) as $contentType) {
            $resources[] = $contentType;
        }

        foreach ($resources as $resource) {
            yield $resource;
        }

        if ($cacheContent) {
            $locales = \array_map(function (Locale $locale) {
                return $locale->getCode();
            }, $this->client->getEnvironment()->getLocales());
            $locales[] = '*';

            foreach ($this->fetchCollection('Entry', $locales) as $entry) {
                yield $entry;
            }

            foreach ($this->fetchCollection('Asset', $locales) as $asset) {
                yield $asset;
            }
        }
    }
protected function fetchResources(bool $cacheContent = false)
    {
        $resources = [
            $this->client->getSpace(),
            $this->client->getEnvironment(),
        ];

        $query = (new Query())
            ->setLimit(100)
        ;
        foreach ($this->client->getContentTypes($query) as $contentType) {
            $resources[] = $contentType;
        }

        foreach ($resources as $resource) {
            yield $resource;
        }

        if ($cacheContent) {
            $locales = \array_map(function (Locale $locale) {
                return $locale->getCode();
            }, $this->client->getEnvironment()->getLocales());
            $locales[] = '*';

            foreach ($this->fetchCollection('Entry', $locales) as $entry) {
                yield $entry;
            }

            foreach ($this->fetchCollection('Asset', $locales) as $asset) {
                yield $asset;
            }
        }
    }
@param bool $cacheContent

@return ResourceInterface[]