我尝试创建“框架不可知”的业务类。这意味着,我的类不应该有任何对任何框架类的引用,只有项目依赖项。 我尝试了以下代码,在service.yml中使用typehint,但没有成功...下面是我注入EntityManager的控制器: use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Doctrine\ORM:__construct() must implement interface App\Interfaces\EntityManagerInterfa