πŸ‡ΊπŸ‡ΈUnited States @lslalbai

Texas
Account created on 28 November 2024, 4 months ago
#

Recent comments

πŸ‡ΊπŸ‡Έ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.

Production build 0.71.5 2024