getImageLoader() 공개 정적인 메소드

Returns an instance of ImageLoaderInterface based on current bridge.
public static getImageLoader ( ConfigObject $config ) : Webiny\Component\Image\ImageLoaderInterface
$config Webiny\Component\Config\ConfigObject
리턴 Webiny\Component\Image\ImageLoaderInterface
예제 #1
0
 /**
  * Returns an instance of ImageLoaderInterface.
  *
  * @return null|ImageLoaderInterface
  */
 private static function getLoader()
 {
     if (self::isNull(self::$loader)) {
         self::$loader = Loader::getImageLoader(Image::getConfig());
     }
     return self::$loader;
 }
예제 #2
0
 /**
  * @expectedException
  */
 public function testGetImageLoaderException()
 {
     $config = new ConfigObject(['Bridge' => 'doesnt exist']);
     Loader::getImageLoader($config);
 }