/** * @return Thumbator */ public function create() { $t = new Thumbator($this->httpRequest); $t->setWwwPath($this->wwwPath); $t->setThumbDir($this->thumbDir); return $t; }
/** * @param string $src * @param int $width * @param int $height * @param null $mode */ public function image($src, $width, $height, $mode = Image::SHRINK_ONLY) { $this->thumbator->create($src, $width, $height, $mode); }