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
The side effect to this that every call to the Map facade will resolve a new instance of Builder making the blueprintResolver() method un-usable.
So from my point of view if I understand everything correctly, to use the Map Facade as intended getFacadeAccessor() will need to return a object instance saved to a property in Connection or a Application container singleton.
The text was updated successfully, but these errors were encountered:
JFossey
changed the title
Sleimanx2\Plastic\Facades\Map::getFacadeAccessor() returning new instance with each call to Map facade
Map::getFacadeAccessor() returning new instance with each call to Map facade
Feb 8, 2017
Thanks for a very helpful and time saving package.
I was trying to use a custom blueprint class by using
Map::blueprintResolver()
. This seemed to have no effect.After a short investigation I discovered that because
Map::getFacadeAccessor()
is returning an object instance andFacades::resolveFacadeInstance($name)
returns objects immediately without adding them to the$resolvedInstance
static property.The side effect to this that every call to the Map facade will resolve a new instance of Builder making the
blueprintResolver()
method un-usable.So from my point of view if I understand everything correctly, to use the Map Facade as intended
getFacadeAccessor()
will need to return a object instance saved to a property inConnection
or a Application container singleton.The text was updated successfully, but these errors were encountered: