fediverse-feed-wrappers/public/index.php

20 lines
701 B
PHP
Raw Permalink 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\ForgeTypo3Issues;
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,
'ForgeTypo3Issues' => ForgeTypo3Issues::class,
'DanielSiepmannTypo3' => DanielSiepmannTypo3::class,
2023-02-16 08:33:59 +01:00
])
))->handleRequest();