Implemented product list

This commit is contained in:
Kevin Frantz
2018-07-14 23:14:06 +02:00
parent 560c70de38
commit 1bc7219caa
17 changed files with 92 additions and 50 deletions

18
src/router/Button.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
namespace router;
/**
* A button containes out of a link and post parameters
* @author kevinfrantz
* @deprecated
*
*/
class Button
{
private $link;
public function __construct(Link $link,array $post){
$this->link;
}
}

View File

@@ -2,11 +2,11 @@
namespace router;
/**
*
* A link containes out of get parameters
* @author kevinfrantz
*
*/
class Link
final class Link
{
/**
* ArrayCollection would be nicer but I have to save time ;)

View File

@@ -50,7 +50,7 @@ final class Router implements RouterInterface
return $userController->register();
}
case 'product':
$productController = new Product();
$productController = new Product($this->core);
switch ($this->get['action']) {
case 'list':
return $productController->list();