Ejemplo n.º 1
0
 private function generateFilePath($name, $size, $prefix)
 {
     $prefix = $prefix == 1 ? self::PREFIX_1X : self::PREFIX_2X;
     return $this->renderer ? $this->renderer->basePath(implode('/', [self::DIR_IMAGES, $size, $prefix . $name]) . $this->postfix) : implode('/', [self::DIR_IMAGES, $size, $prefix . $name]) . $this->postfix;
 }