Yes, $requestedName is enough. The $name is the normalized name (for instance if you have "Application\Form\UserForm", the $name will be "applicationformuserform", so clearly it will never match.