I have my DI container with custom service in it:
$di = new Phalcon\Di;
$di->set('whatever', function(){
return new Whatever();
}, true); // It is shared.
Shared service "whatever" may or may not be resolved (instantiated/set) by my application.
At the end of request cycle I need to know whether it was resolved or not.
Obviously, I don't want to do:
$di->get('whatever);
because that will resolve it for sure.
Is there a way of knowing whether "whatever" has been resolved?
Thanks, Temuri