/**
  * @param $slotName
  * @throws \Exception
  */
 public function __construct($slotName)
 {
     $adapterFactory = new AdapterFactory();
     $this->slot = strtolower($slotName);
     $config = ['dbname' => 'burger', 'slot' => $this->slot, 'user' => 'vagrant', 'password' => 'vagrant', 'host' => '10.0.1.21', 'driver' => 'pdo_mysql'];
     $this->adapter = $adapterFactory->create($config);
     $this->data = new StorageDataManager();
 }
 private function getDoctrine()
 {
     $storageFactory = new AdapterFactory();
     $config = ['dbname' => 'burger', 'slot' => 'test', 'user' => 'vagrant', 'password' => 'vagrant', 'host' => '10.0.1.21', 'driver' => 'pdo_mysql'];
     return $storageFactory->create($config, 'DoctrineAdapter');
 }