dpi / pinto

0 stars 1 forks source link

Pass object context to list build #2

Closed dpi closed 7 months ago

dpi commented 7 months ago

In \Pinto\Object\ObjectTrait::pintoBuild, update $built = (static::$pintoEnum->build($wrapper))($template); to pass along $this so lists have access to the object. Otherwise their closure is potentially acting in isolation.

\Pinto\List\ObjectListInterface::build and \Pinto\List\ObjectListTrait::build are updated with a new object $object arg