Symfony 3.4 supports rewriting of container->get(). I was changing get("doctrine")->getManager(), but there was a place where information was passed in ()