mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2025-11-21 02:56:25 +00:00
Implemented Navigation
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user