Implement #1242
Unit test
Merge pull request #1319 from sjinks/issue-1242

Phalcon\DI: Info on whether DI service has been resolved