25 lines
549 B
PHP
Raw Normal View History

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