public function refreshContentTypeCache(Client $client): void
    {
        $spacePath = $this->getSpaceCachePath($client);
        $contentTypes = $client->getContentTypes();
        foreach ($contentTypes as $contentType) {
            $this->fileSystem->dumpFile($spacePath . '/ct-' . $contentType->getId() . '.json', (string) json_encode($contentType));
        }
    }
public function refreshContentTypeCache(Client $client): void
    {
        $spacePath = $this->getSpaceCachePath($client);
        $contentTypes = $client->getContentTypes();
        foreach ($contentTypes as $contentType) {
            $this->fileSystem->dumpFile($spacePath . '/ct-' . $contentType->getId() . '.json', (string) json_encode($contentType));
        }
    }
public function refreshContentTypeCache ( Client $ client ) : void { $ spacePath = $ this -> getSpaceCachePath ( $ client ) ; $ contentTypes = $ client -> getContentTypes ( ) ; foreach ( $ contentTypes as $ contentType ) { $ this -> fileSystem -> dumpFile ( $ spacePath . '/ct-' . $ contentType -> getId ( ) . '.json' , ( string ) json_encode ( $ contentType ) ) ; } }
Refreshes content type caches for provided client.
Refreshes content type caches for provided client .