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
When we get an object via $c->get('service-name'), it create an object and put it into $resolved property of the container.
Then if we check service existing via $c->has('service-name'), it returns false.
The same container object doesn't exists in the container services.
Example of code that would not make sense: $foo = $container->has('foo') ? $container->get('foo') : null;
Question:
Should we check when run $c->has(...) that service exists in $resolved property?
The text was updated successfully, but these errors were encountered:
When we get an object via
$c->get('service-name')
, it create an object and put it into$resolved
property of the container.Then if we check service existing via
$c->has('service-name')
, it returnsfalse
.The same
container
object doesn't exists in the container services.Example of code that would not make sense:
$foo = $container->has('foo') ? $container->get('foo') : null;
Question:
Should we check when run $c->has(...) that service exists in
$resolved
property?The text was updated successfully, but these errors were encountered: