πΊπΈUnited States lslalbai Texas
Would this work?
- Change line 81 to
(new \ReflectionProperty($this, $key))->setValue($this, $container->get($service_id));
- Change line 96 to
(new \ReflectionProperty($this, $key))->setValue($this, $entity_type_manager->getStorage($entity_type_id));
πΊπΈUnited States lslalbai Texas
Using Drupal\Core\DependencyInjection\DependencySerializationTrait should not make it impossible to have readonly properties that refer to services on a class or classed that inherit from it.