Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
FrameworkServiceProvider
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5/**
6 * This file is part of php-fast-forward/framework.
7 *
8 * This source file is subject to the license bundled
9 * with this source code in the file LICENSE.
10 *
11 * @copyright Copyright (c) 2025-2026 Felipe SayĆ£o Lobato Abreu <github@mentordosnerds.com>
12 * @license   https://opensource.org/licenses/MIT MIT License
13 *
14 * @see       https://github.com/php-fast-forward/framework
15 * @see       https://github.com/php-fast-forward
16 * @see       https://datatracker.ietf.org/doc/html/rfc2119
17 */
18
19namespace FastForward\Framework\ServiceProvider;
20
21use FastForward\Container\ServiceProvider\AggregateServiceProvider;
22use FastForward\Http\ServiceProvider\HttpServiceProvider;
23
24/**
25 * Class FrameworkServiceProvider.
26 *
27 * Aggregates core framework service providers into a unified service provider.
28 * This class MUST be used to encapsulate all foundational service providers
29 * required to initialize the application container.
30 *
31 * The internal aggregation MAY include HTTP, logging, caching, console,
32 * event dispatching, session handling, and other service providers required
33 * for application infrastructure.
34 *
35 * This class SHALL implement the ServiceProviderInterface and MUST delegate
36 * its service discovery responsibilities to an internal AggregateServiceProvider.
37 */
38final class FrameworkServiceProvider extends AggregateServiceProvider
39{
40    /**
41     * Constructs the FrameworkServiceProvider.
42     *
43     * This constructor MUST initialize the aggregate service provider using
44     * a composition of essential framework service providers.
45     */
46    public function __construct()
47    {
48        parent::__construct(
49            new HttpServiceProvider(),
50        );
51    }
52}