mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2025-03-14 19:35:19 +01:00
25 lines
549 B
PHP
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
|
|
{}
|
|
|
|
}
|
|
|