mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 08:37:30 +02:00
refactor: introduce DI container (#4238)
* refactor: introduce DI container * add bin/test
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
|
||||
final class BridgeCard
|
||||
{
|
||||
public static function render(string $bridgeClassName, ?string $token): string
|
||||
{
|
||||
$bridgeFactory = new BridgeFactory();
|
||||
|
||||
public static function render(
|
||||
BridgeFactory $bridgeFactory,
|
||||
string $bridgeClassName,
|
||||
?string $token
|
||||
): string {
|
||||
$bridge = $bridgeFactory->create($bridgeClassName);
|
||||
|
||||
$uri = $bridge->getURI();
|
||||
|
Reference in New Issue
Block a user