Essence\Di\Container\Standard::_setupOEmbed PHP Method

_setupOEmbed() protected method

Configures oEmbed provider.
protected _setupOEmbed ( )
    protected function _setupOEmbed()
    {
        $this->configure(['oEmbedMapping' => ['author_name' => 'authorName', 'author_url' => 'authorUrl', 'provider_name' => 'providerName', 'provider_url' => 'providerUrl', 'cache_age' => 'cacheAge', 'thumbnail_url' => 'thumbnailUrl', 'thumbnail_width' => 'thumbnailWidth', 'thumbnail_height' => 'thumbnailHeight'], 'oEmbedPreparators' => [], 'oEmbedPresenters' => Container::unique(function ($C) {
            return [$C->get('OEmbedReindexer'), $C->get('Completer')];
        }), 'OEmbedReindexer' => Container::unique(function ($C) {
            return new Reindexer($C->get('oEmbedMapping'));
        }), 'OEmbedProvider' => function ($C) {
            $OEmbed = new OEmbed($C->get('Http'), $C->get('Dom'));
            $OEmbed->setPreparators($C->get('oEmbedPreparators'));
            $OEmbed->setPresenters($C->get('oEmbedPresenters'));
            return $OEmbed;
        }]);
    }