Upgrade 10 to 11
Inject-Method in Controller:
use TTN\Tea\Domain\Repository\Product\TeaRepository; class TeaController extends ActionController { private TeaRepository $teaRepository; public function injectTeaRepository(TeaRepository $teaRepository): void { $this->teaRepository = $teaRepository; } }
Response Interface
use Psr\Http\Message\ResponseInterface; use TTN\Tea\Domain\Repository\Product\TeaRepository; class TeaController extends ActionController { private TeaRepository $teaRepository; public function indexAction(): ResponseInterface { $this->view->assign('teas', $this->teaRepository->findAll()); return $this->htmlResponse(); } }