Exemplo n.º 1
0
 /**
  * Upload by base64 encoded source
  *
  * @param ImageInterface $image   Image entity
  * @param string         $content Base64 source
  * @param array          $options Upload options
  *
  * @return ImageInterface
  */
 public function uploadBase64(ImageInterface $image, $content, array $options = [])
 {
     $this->tmpFile->create()->write(base64_decode($content));
     try {
         $image = $this->upload($image, $this->tmpFile->getPath(), $options);
     } finally {
         $this->tmpFile->clear();
     }
     return $image;
 }
Exemplo n.º 2
0
 private function getConfigPath($outputPath)
 {
     $doxyConfig = new DoxyConfig();
     $doxyConfig->add('@INCLUDE', $this->configPath);
     $doxyConfig->add('OUTPUT_DIRECTORY', $outputPath);
     $doxyConfig->add('STRIP_FROM_PATH', $this->stripPaths);
     $doxyConfig->add('INPUT', $this->inputPaths);
     foreach ($this->otherOpts as $key => $value) {
         $doxyConfig->add($key, $value);
     }
     $this->primaryConfig = new TempFile(false);
     $doxyConfig->write($this->primaryConfig);
     return $this->primaryConfig->getPath();
 }