Skip to content

Commit 2af4cbe

Browse files
Remove per-property support, dropped in Symfony 7.0
1 parent 149a8fa commit 2af4cbe

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

components/var_exporter.rst

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -264,17 +264,6 @@ While you never query ``$processor->hash`` value, heavy methods will never be
264264
triggered. But still, the ``$processor`` object exists and can be used in your
265265
code, passed to methods, functions, etc.
266266

267-
Additionally and by adding two arguments to the initializer function, it is
268-
possible to initialize properties one-by-one::
269-
270-
$processor = LazyHashProcessor::createLazyGhost(initializer: function (HashProcessor $instance, string $propertyName, ?string $propertyScope): mixed {
271-
if (HashProcessor::class === $propertyScope && 'hash' === $propertyName) {
272-
// Return $hash value
273-
}
274-
275-
// Then you can add more logic for the other properties
276-
});
277-
278267
Ghost objects unfortunately can't work with abstract classes or internal PHP
279268
classes. Nevertheless, the VarExporter component covers this need with the help
280269
of :ref:`Virtual Proxies <var-exporter_virtual-proxies>`.

0 commit comments

Comments
 (0)