コード例 #1
0
 /**
  * Constructor.
  *
  * @param ImagineInterface  $imagine
  * @param array             $formats
  * @param string            $rootPath
  * @param DocumentManager   $manager
  * @param string            $class
  */
 public function __construct(ImagineInterface $imagine, array $formats, $rootPath, DocumentManager $manager, $class = null)
 {
     parent::__construct($imagine, $formats, $rootPath);
     $this->manager = $manager;
     $this->class = $class;
     $this->rootPath = $rootPath;
 }
コード例 #2
0
 /**
  * Constructor.
  *
  * @param ImagineInterface       $imagine
  * @param array                  $formats
  * @param string                 $rootPath
  * @param TransformerInterface[] $transformers
  */
 public function __construct(ImagineInterface $imagine, $formats, $rootPath, array $transformers)
 {
     parent::__construct($imagine, $formats, $rootPath);
     $this->transformers = $transformers;
 }