ServiceManager::canCreate() is deprecated

Replaced with has()