function LazyGhostTrait::initializeLazyObject
Forces initialization of a lazy object and returns it.
1 call to LazyGhostTrait::initializeLazyObject()
- LazyGhostTrait::__serialize in vendor/
symfony/ var-exporter/ LazyGhostTrait.php
File
-
vendor/
symfony/ var-exporter/ LazyGhostTrait.php, line 92
Class
Namespace
Symfony\Component\VarExporterCode
public function initializeLazyObject() : static {
if (!($state = $this->lazyObjectState ?? null)) {
return $this;
}
if (LazyObjectState::STATUS_UNINITIALIZED_FULL === $state->status) {
$state->initialize($this, '', null);
}
return $this;
}