Implemented Navigation

This commit is contained in:
Kevin Frantz
2018-07-15 08:31:24 +02:00
parent 401fa64733
commit d480467615
14 changed files with 227 additions and 102 deletions

View File

@@ -1,8 +1,11 @@
<?php
namespace repository;
use core\CoreInterface;
use entity\user\UserInterface;
/**
*
*
* @author kevinfrantz
*
*/
@@ -13,8 +16,14 @@ abstract class AbstractRepository
*/
protected $database;
public function __construct(\PDO $database){
$this->database = $database;
/**
* @var UserInterface
*/
protected $user;
public function __construct(CoreInterface $core){
$this->database = $core->getDatabase();
$this->user = $core->getUser();
}
}