-
src/Transformer/TransformerBase.php—languageManageris a nullable property set by concrete subclasses (PostTransformer) rather than declared in the base constructor. This is acceptable for the current two-subclass hierarchy where onlyPostTransformerneeds language context. If a third transformer needsgetLangs(), consider adding an abstract method or moving the property to a shared constructor.
The following issues have been fixed:
-
src/Transformer/PublicationTransformer.php—hexToRgb()changed frompublic statictoprivate static -
src/Form/SettingsForm.php:26—$config_factoryrenamed to$configFactoryper Drupal OOP camelCase convention -
src/Transformer/TidGenerator.php—strpos() === FALSEreplaced withstr_contains() -
src/Transformer/DocumentTransformer.php— Addeduse Drupal\atmosphere\ContentParser\ContentParserInterfaceimport; removed inline FQCN -
atmosphere.module— UppercaseTRUE/FALSEstandardized to lowercase -
src/Service/ApiClient.php— UppercaseTRUE/FALSEstandardized; added@param/@returndocblocks to all public methods -
src/Service/Publisher.php— UppercaseTRUE/FALSEstandardized; added@param/@returndocblocks topublish(),update(),delete(),deleteByTids(),syncPublication() -
src/Service/ConnectionManager.php— Added@returndocblocks toisConnected(),getConnection(),getDid(),getHandle(),getPdsEndpoint(),getTokenEndpoint(),getAuthServer(),getAccessToken(),getRefreshToken(),getDpopJwk(),getExpiresAt() -
src/OAuth/Client.php— UppercaseTRUE/FALSEstandardized; added@returndocblocks toclientId(),redirectUri(),accessToken(),dpopJwk(),disconnect() -
src/Controller/BackfillController.php— Added@param/@returndocblocks tocount()andbatch() -
\Drupal::service('file_system')in DocumentTransformer, PostTransformer, PublicationTransformer — now injected viaFileSystemInterface -
\Drupal::entityTypeManager()in PostTransformer — now injected viaEntityTypeManagerInterface -
\Drupal::languageManager()in TransformerBase — now uses injectedLanguageManagerInterface -
$GLOBALS['base_url']in ClientMetadataController, DocumentTransformer, PublicationTransformer — replaced withUrlGeneratorInterface -
\Drupal::logger()in Publisher — now uses injectedLoggerInterface -
PreviewSubscriberJSON double-encoding bug — fixed tonew JsonResponse($record) -
truncateText()now usesgrapheme_strlen/grapheme_substrwithmb_fallback