for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Facile\SentryModule\Service;
use Psr\Container\ContainerInterface;
use Sentry\ClientInterface;
use Sentry\State\Hub;
use Sentry\State\HubInterface;
final class HubFactory
{
public function __invoke(ContainerInterface $container): HubInterface
$client = $container->get(ClientInterface::class);
Hub::getCurrent()->bindClient($client);
return Hub::getCurrent();
}