Framework/src/Providers/Core/RoutingServiceProvider.php

28 lines
791 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace Phred\Providers\Core;
use DI\Container;
use DI\ContainerBuilder;
use Phred\Http\Routing\RouteRegistry;
use Phred\Support\Contracts\ConfigInterface;
use Phred\Support\Contracts\ServiceProviderInterface;
final class RoutingServiceProvider implements ServiceProviderInterface
{
public function register(ContainerBuilder $builder, ConfigInterface $config): void
{
// No bindings required; route registry is static helper for now.
}
public function boot(Container $container): void
{
// Core routes can be appended here in future if needed.
// Keeping provider to illustrate ordering and future extension point.
RouteRegistry::add(static function (): void {
// no-op
});
}
}