public function __construct(\Application $application) { parent::__construct($application); $this->repository = PDORepositoryFactory::get("\\plugin\\Slider\\model\\Slide", \Database::GetConnection()); $this->AdminController = new controller\AdminController($this->application, $this->repository); $this->PublicController = new controller\PublicController($this->application, $this->repository); }
private function findExternal($class, $primaryValue) { $repository = PDORepositoryFactory::get($class, $this->db); return $repository->find($primaryValue); }