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.

Uncaught exception 'Phalcon\DI\Exception' with message 'Service 'config' cannot be resolved'

Hi Team,

I am getting below error on linux server Fatal error: Uncaught exception 'Phalcon\DI\Exception' with message 'Service 'config' cannot be resolved' in library/core/Loggr.php:31

This problem caused due to setShared is not working in my phalcon. Any trick which help me to make it work.

Please help me in this.

Thanks, Amol



8.0k
Accepted
answer

Hi amolra , check how to use DI in this document https://docs.phalconphp.com/uk/latest/reference/di.html