Hi, sorry for off top, but I scary to ask this on StackOverflow.
I begin to use PHP-DI in my project and I saw this
use Roma\DiContainerSlim\Models\UserManager as UserManager; $container = new \DI\Container(); $userManager = $container->get('Roma\DiContainerSlim\Models\UserManager');
It’s working. But if I do this
It’s not work. Honestly, I try googling but I found nothing.