Dependency check should be on ProxyManager directly - fixes #7945

Hotfix for #7945 and symfony/symfony-standard#542

Yes yes, I know, the headers - coming after meeting time