/**
  * factory method to create default VideoPreviewImageExtractor
  * @return VideoPreviewImageExtractor
  */
 public static function create()
 {
     $vimeoExtractor = VimeoExtractor::create();
     $youtubeExtractor = YoutubeExtractor::create();
     $dailymotionExtractor = DailymotionExtractor::create();
     return new self([$vimeoExtractor, $youtubeExtractor, $dailymotionExtractor], $filter = []);
 }
コード例 #2
0
 public function testCreate()
 {
     $extractor = YoutubeExtractor::create();
     $this->assertInstanceOf('Ivoba\\VideoPreviewImageExtractor\\Extractor\\YoutubeExtractor', $extractor);
 }