Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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



2.3k
Accepted
answer
edited Mar '15

Hi there, you can try to remove the view service

$di->remove('view');

http://docs.phalconphp.com/en/master/api/Phalcon%5DI.html