2018-07-14 23:14:06 +02:00

25 lines
549 B
PHP

<?php
namespace controller\product;
use controller\AbstractController;
use repository\product\Product as ProductRepository;
/**
*
* @author kevinfrantz
*
*/
final class Product extends AbstractController implements ProductInterface
{
public function list(): void
{
$productRepository = new ProductRepository($this->core->getDatabase());
$this->render('product/list.html.twig',['products'=>$productRepository->getAllProducts()->toArray()]);
}
public function colorFilter(string $color): void
{}
}