Пример #1
0
 /**
  * Returns category image manager
  * 
  * @param \Krystal\Stdlib\VirtualEntity $config
  * @return \Krystal\Image\ImageManager
  */
 private function getCategoryImageManager(VirtualEntity $config)
 {
     $plugins = array('thumb' => array('dimensions' => array(array(200, 200), array($config->getCategoryCoverWidth(), $config->getCategoryCoverHeight()))), 'original' => array('prefix' => 'original'));
     return new ImageManager('/data/uploads/module/shop/categories/', $this->appConfig->getRootDir(), $this->appConfig->getRootUrl(), $plugins);
 }