public function setUp() { $this->config = Config::getInstanceByArray($this->configAr); file_put_contents($this->configAr['repository']['config']['dbpath'], ''); $this->config->getPhotoRepository()->initialize(); $this->config->getPhotoThumbRepository()->initialize(); $this->photoSuite = PhotoSuite::create($this->config); }
/** * @return ThumbFinder */ private function getThumbsFinder() { if (is_null($this->thumbFinder)) { $this->thumbFinder = new ThumbFinder($this->config->getPhotoRepository(), $this->config->getPhotoThumbRepository(), $this->config->getPhotoThumbGenerator(), $this->config->getPhotoStorage(), $this->config->PhotoThumbPresenter()); } return $this->thumbFinder; }