Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
12 / 12
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
ConsoleKernel
100.00% covered (success)
100.00%
12 / 12
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 bootstrappers
100.00% covered (success)
100.00%
12 / 12
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Hyde\Foundation;
6
7use LaravelZero\Framework\Kernel;
8
9class ConsoleKernel extends Kernel
10{
11    /**
12     * Get the bootstrap classes for the application.
13     */
14    protected function bootstrappers(): array
15    {
16        // Since we store our application config in `app/config.php`, we need to replace
17        // the default LoadConfiguration bootstrapper class with our implementation.
18        // We do this by swapping out the LoadConfiguration class with our own.
19        // We also inject our Yaml configuration loading bootstrapper.
20
21        // First, we need to register our Yaml configuration repository,
22        // as this code executes before service providers are registered.
23        $this->app->singleton(Internal\YamlConfigurationRepository::class);
24
25        return [
26            \LaravelZero\Framework\Bootstrap\CoreBindings::class,
27            \LaravelZero\Framework\Bootstrap\LoadEnvironmentVariables::class,
28            \Hyde\Foundation\Internal\LoadYamlEnvironmentVariables::class,
29            \Hyde\Foundation\Internal\LoadConfiguration::class,
30            \Illuminate\Foundation\Bootstrap\HandleExceptions::class,
31            \LaravelZero\Framework\Bootstrap\RegisterFacades::class,
32            \Hyde\Foundation\Internal\LoadYamlConfiguration::class,
33            \LaravelZero\Framework\Bootstrap\RegisterProviders::class,
34            \Illuminate\Foundation\Bootstrap\BootProviders::class,
35        ];
36    }
37}