We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How close the service

I started $ di = new \ Phalcon \ DI \ FactoryDefault () ;, then the following breakdown of the A and B module, the public include "voltService" and "view"(two services), and now I would like to module A's Close "voltService" and "view" of these two services, how can I write in module A of the boot file



3.7k
Accepted
answer
edited Mar '15

Hi there, you can try to remove the view service

$di->remove('view');

https://docs.phalcon.io/en/master/api/Phalcon_DI.html