I think `$namespaces` and `$managerParameters` should be type-hinted, as in https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php#L83