示例#1
0
 /**
  * Build out the dependencies required to create
  * a new attachment object.
  *
  * @param string $name
  * @param array $options
  * @return array
  */
 protected static function buildDependencies($name, array $options)
 {
     return [new AttachmentConfig($name, $options), Stapler::getInterpolatorInstance(), Stapler::getResizerInstance($options['image_processing_library']), Stapler::getPlaceholderInstance()];
 }