public function list(ItemRepository $itemRepository)
{
$items = $itemRepository->findAll();
public function list()
{
$entityManager = $this->getDoctrine()->getManager();
$items = $entityManager->getRepository(Item::class)->findAll();