- Implement full suite of 'phred' CLI generators and utility commands (M9). - Refactor scaffolding logic to use external stubs in 'src/stubs'. - Add security hardening via SecureHeaders, Csrf, and CORS middleware (M10). - Implement JWT token issuance and validation service with lcobucci/jwt. - Integrate 'getphred/flagpole' for feature flag support. - Introduce abstract 'Middleware' base class for standardized PSR-15 implementation. - Add robust driver validation to OrmServiceProvider. - Fix JwtTokenService claims access and validation constraints. - Update MILESTONES.md status.
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 {}
|
|
}
|