astehlik/typo3-extension-mediaoembed

View on GitHub
Resources/Private/Scripts/GenerateProviderData.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

use Sto\Mediaoembed\Provider\EndpointCollector;
use Sto\Mediaoembed\Provider\ProviderEndpoints;
use Sto\Mediaoembed\Provider\ProviderTypoScriptRenderer;
use Sto\Mediaoembed\Provider\ProviderUrls;

require __DIR__ . '/../../../.Build/vendor/autoload.php';

$providerUrls = new ProviderUrls();
$providerEndpoints = new ProviderEndpoints();

$providerCommandController = new EndpointCollector($providerEndpoints, $providerUrls);
$endpoints = $providerCommandController->collectEndpoints();

$providerTypoScriptRenderer = new ProviderTypoScriptRenderer();
// @extensionScannerIgnoreLine
echo $providerTypoScriptRenderer->render($endpoints);