\Drupal\strata StrataServiceProvider

Wires the capture decorators that cannot be declared in YAML.

keyvalue is a normal service on a running site and a SYNTHETIC one under KernelTestBase, which replaces it with an in-memory factory so state survives a container rebuild between test phases. Symfony refuses to decorate a synthetic service - there is no definition to wrap - so a decorates: keyvalue line in strata.services.yml would compile on every site and fail on every kernel test in the project, including the ones that have nothing to do with key-value capture.

So the decoration is applied here, where the definition can be inspected first. A site gets key-value capture; the kernel lane does not, and the decorator's own behaviour is covered by unit tests over a real in-memory factory instead.

Summary

Methods
Properties
Constants
alter
No public properties found
INNER
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Constant

INNER

INNER = 'strata.keyvalue.inner'

Service id the undecorated factory is moved to.

Methods

alter()

alter(\Drupal\Core\DependencyInjection\ContainerBuilder  $container) : void

{@inheritdoc}

Parameters

\Drupal\Core\DependencyInjection\ContainerBuilder $container

Returns

void —