OpenXE/classes/Components/HttpClient/Bootstrap.php

27 lines
467 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?php
declare(strict_types=1);
namespace Xentral\Components\HttpClient;
final class Bootstrap
{
/**
* @return array
*/
public static function registerServices(): array
{
return [
'HttpClientFactory' => 'onInitHttpClientFactory',
];
}
/**
* @return HttpClientFactory
*/
public static function onInitHttpClientFactory(): HttpClientFactory
{
return new HttpClientFactory();
}
}