%PDF- %PDF-
Direktori : /var/www/html/bbw/farmaci/kritik-portale/module/Basis/src/Basis/Repo/ |
Current File : /var/www/html/bbw/farmaci/kritik-portale/module/Basis/src/Basis/Repo/Basis.php |
<?php /** * Created by PhpStorm. * User: Julian Gilles * Date: 17.03.14 * Time: 13:03 */ namespace Basis\Repo; use Aws\Common\Aws; abstract class Basis implements RepoInterface { /** * @var \Basis\EventBus\EventBus */ protected $_eventBus; /** * @var \Basis\EventStore\EventStore */ protected $_eventStore; /** * @var \Zend\Db\Adapter\Adapter */ protected $_databaseAdapter; /** * @var Aws|null */ protected $aws = null; public function __construct(\Basis\EventBus\EventBus $eventBus, \Zend\Db\Adapter\Adapter $databaseAdapter, Aws $aws = null) { $this->_eventBus = $eventBus; $this->_databaseAdapter = $databaseAdapter; $this->aws = $aws; } public function createEventStore($entityType) { $this->_eventStore = new \Basis\EventStore\EventStore($entityType); $this->_eventStore->setDatabaseAdapter($this->_databaseAdapter); } }