Symfony deprecation-> get Manager