26 lines
747 B
PHP
26 lines
747 B
PHP
|
|
<?php
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Phred\Providers\Core;
|
||
|
|
|
||
|
|
use DI\Container;
|
||
|
|
use DI\ContainerBuilder;
|
||
|
|
use Phred\Security\Contracts\TokenServiceInterface;
|
||
|
|
use Phred\Security\Jwt\JwtTokenService;
|
||
|
|
use Phred\Flags\Contracts\FeatureFlagClientInterface;
|
||
|
|
use Phred\Flags\FlagpoleClient;
|
||
|
|
use Phred\Support\Contracts\ConfigInterface;
|
||
|
|
use Phred\Support\Contracts\ServiceProviderInterface;
|
||
|
|
|
||
|
|
final class SecurityServiceProvider implements ServiceProviderInterface
|
||
|
|
{
|
||
|
|
public function register(ContainerBuilder $builder, ConfigInterface $config): void
|
||
|
|
{
|
||
|
|
$builder->addDefinitions([
|
||
|
|
TokenServiceInterface::class => \DI\autowire(JwtTokenService::class),
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function boot(Container $container): void {}
|
||
|
|
}
|