Was wondering today which services should be set as shared and which not. I think other users will find this topic useful too. Does it really matter for performance or anything else?
According to DI docs
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
Looking at Vokuro Service file some are set as shared and some not. Can someone give examples of common services and what will be the better way to set them? For example DB, sesssion, url, router, view and so on.