Namespace and PHP-DI

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

$container->get('UserManager');

It’s not work. Honestly, I try googling but I found nothing.

Hey @ogurchik,

Try this:

$container->get(UserManager::class);