mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 04:27:14 +01:00
27 lines
467 B
PHP
27 lines
467 B
PHP
<?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();
|
|
}
|
|
}
|