fediverse-feed-wrappers/public/index.php

18 lines
579 B
PHP
Raw Normal View History

2023-02-16 08:33:59 +01:00
<?php
use DanielSiepmann\FediverseFeedWrappers\RequestHandler;
use DanielSiepmann\FediverseFeedWrappers\WrapperRegistry;
use DanielSiepmann\FediverseFeedWrappers\Wrapper\DanielSiepmannTypo3;
use DanielSiepmann\FediverseFeedWrappers\Wrapper\Frontpage;
2023-02-16 08:33:59 +01:00
use DanielSiepmann\FediverseFeedWrappers\Wrapper\GitHubTypo3;
require_once __DIR__ . '/../vendor/autoload.php';
(new RequestHandler(
new WrapperRegistry([
'' => Frontpage::class,
2023-02-16 08:33:59 +01:00
'GitHubTypo3' => GitHubTypo3::class,
'DanielSiepmannTypo3' => DanielSiepmannTypo3::class,
2023-02-16 08:33:59 +01:00
])
))->handleRequest();