public function __get(mixed $name) : mixed { if ('service' !== $name) { throw new InvalidArgumentException(\sprintf('Cannot read property "%s" from a lazy closure.', $name)); } if (isset($this->initializer)) { $this->service = ($this->initializer)(); unset($this->initializer); } return $this->service; }