Currently \Drupal\attachinline\Render\HtmlResponseAttachmentsProcessor must replace the core html_response.attachments_processor service, rather than just decorating it like other services are able to.
This is necessary because
- The list of supported keys in
#attachedis hard-coded - A static call to
\Drupal\Core\Asset\AttachedAssets::createFromRenderArray()
Comments
Comment #2
gappleComment #3
gappleOpened an issue against core for one of the conflicts.