Let me declare the question: As far as I know, when a request end, php will clear objects and other data that it created.
But as the Phalcon's document said: "Services can be registered as “shared” services this means that they always will act as singletons. Once the service is resolved for the first time the same instance of it is returned every time a consumer retrieve the service from the container".
<?php
//Register the session service as "always shared"
$di->set('session', function() {
//...
}, true);
What I want to know is that: after a shared component was created, then at the next request, phalcon will reuse the shared component? I means phalcon will not create a new component instance.
https://stackoverflow.com/questions/29027142/is-a-singleton-component-in-phalcon-a-real-singleton