- Issue created by @diqidoq
- πΊπΈUnited States agentrickard Georgia (US)
domain.route.provider seems to be fine.
domain_config.library.discovery.collector will hit this because it extends Drupal\Core\Cache\CacheCollector which calls the DestructableInterface
domain_config_ui.factory seems to be fine.
- Status changed to Postponed: needs info
28 days ago 1:37pm 29 May 2024 - πΊπΈUnited States agentrickard Georgia (US)
I don't think we have an issue here. I could not replicate the bug by clearing the cache.
That is likely because of the inheritance on the service:
domain_config.library.discovery.collector: decorates: library.discovery.collector class: \Drupal\domain_config\DomainConfigLibraryDiscoveryCollector arguments: ['@cache.discovery', '@lock', '@library.discovery.parser', '@theme.manager'] tags: - { name: needs_destruction } calls: - [setDomainNegotiator, ['@domain.negotiator']]
class DomainConfigLibraryDiscoveryCollector extends LibraryDiscoveryCollector {} class LibraryDiscoveryCollector extends CacheCollector {} abstract class CacheCollector implements CacheCollectorInterface, DestructableInterface {}
CacheCollector::destruct() method is inherited by our class.
- Status changed to Closed: cannot reproduce
28 days ago 2:23pm 29 May 2024 - π©πͺGermany diqidoq Berlin | Hamburg | New York | London | Paris
Same here. Tests with and without cache do not do anything on this. I just did not had time to test it yesterday no more. That are good news!
For rerference: I created this issue based on the worries raised in core issue π Container compile crash when a service decorates a destructable service Needs work affecting many contrib and regarding your comment in #25
Yes, the domain issue here is actually https://www.drupal.org/node/3425054 β -- though we still need to check these decorations:
domain.route_provider:
class: Drupal\domain\Routing\DomainRouteProvider
decorates: router.route_provider
decoration_priority: 10domain_config.library.discovery.collector:
decorates: library.discovery.collector
class: \Drupal\domain_config\DomainConfigLibraryDiscoveryCollectordomain_config_ui.factory:
class: Drupal\domain_config_ui\Config\ConfigFactory
decorates: config.factoryThose should be two issues in the Domain queue.
like described in the summary. Since so many contrib has been affected by this it was good that we made sure not being in row with this. So we got off lightly with that core issue affecting so many contrib.