Symfony 4.4.19
Constructor must accept the interface Doctrine\Common\Persistence\ManagerRegistry instead of Doctrine\Persistence\ManagerRegistry by refactor of "doctrine/persistence" in 1.2.0 or compatibilty in both.

Argument 1 passed to Tetranz\Select2EntityBundle\Form\Type\Select2EntityType::__construct() must be an instance of Doctrine\Persistence\ManagerRegistry, instance of Doctrine\Bundle\DoctrineBundle\Registry given, called in /Users/inhack20/www/freelance/pedro/SmartTT/var/cache/dev/ContainerRvBeuJy/srcApp_KernelDevDebugContainer.php on line 19594