Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/Embed/Adapters/Imageshack.php
Строк: 21
<?php

namespace EmbedAdapters;

use 
EmbedHttpResponse;
use 
EmbedProvidersApi;

/**
 * Adapter to provide information from imageshack.
 */
class Imageshack extends Webpage
{
    
/**
     * {@inheritdoc}
     */
    
public static function check(Response $response)
    {
        return 
$response->isValid() && $response->getUrl()->match([
            
'imageshack.com/i/*',
        ]);
    }

    
/**
     * {@inheritdoc}
     */
    
protected function init()
    {
        
parent::init();

        
$this->providers = ['imageshack' => new ApiImageshack($this)] + $this->providers;
    }
}
Онлайн: 0
Реклама