*/ class TestimonialController extends ActionController { /** * @var \OliverKlee\Tea\Domain\Repository\TestimonialRepository */ protected $testimonialRepository = null; /** * Injects the TestimonialRepository. * * @param \OliverKlee\Tea\Domain\Repository\TestimonialRepository $repository * * @return void */ public function injectTestimonialRepository(TestimonialRepository $repository) { $this->testimonialRepository = $repository; } /** * Lists all testimonials. * * @return void */ public function indexAction() { $this->view->assign('testimonials', $this->testimonialRepository->findAll()); } /** * Injects the view. * * Note: This function is intended for unit-testing purposes only. * * @param \TYPO3\CMS\Extbase\Mvc\View\ViewInterface $view * * @return void */ public function setView(ViewInterface $view) { $this->view = $view; } }