- Issue created by @murz
- Merge request !83Issue #3416420: Implement full initialization of services with a factory → (Merged) created by murz
- Status changed to Fixed
4 months ago 10:31am 26 July 2024
Now TestHelpers has a simplified initialization of services with a defined factory.
It supports only the factory as a string Class::method
and just calls it.
But some services have more complex factory declaration like:
cache.rest:
class: Drupal\Core\Cache\CacheBackendInterface
tags:
- { name: cache.bin }
factory: ['@cache_factory', 'get']
arguments: [rest]
Will be good to add support for this kind of services too.
Fixed
1.4
Code