You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a more general note, I think it's absurd to cache a ValueDefinition, their nature is dynamic (they can be depending on something, the user, the session, …).
When defining a
ValueDefinition
withValueDefinition::isCacheable()
will return false if$var
is an object.However, if
$var
is an array containing unserializable objects, PHP-DI will try to serialize it (and thus an exception will be thrown).The text was updated successfully, but these errors were encountered: