You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
669 B
PHP
23 lines
669 B
PHP
<?php
|
|
|
|
namespace Core;
|
|
|
|
// Responsible for loading in all necessary classes. AKA a poor man's DI solution.
|
|
use BusinessLogic\Category\CategoryRetriever;
|
|
use BusinessLogic\Security\BanRetriever;
|
|
use DataAccess\CategoryGateway;
|
|
use DataAccess\Security\BanGateway;
|
|
|
|
class ApplicationContext {
|
|
public $get;
|
|
|
|
function __construct() {
|
|
$this->get = array();
|
|
|
|
$this->get['CategoryGateway'] = new CategoryGateway();
|
|
$this->get['CategoryRetriever'] = new CategoryRetriever($this->get['CategoryGateway']);
|
|
|
|
$this->get['BanGateway'] = new BanGateway();
|
|
$this->get['BanRetriever'] = new BanRetriever($this->get['BanGateway']);
|
|
}
|
|
} |