narrowspark / framework

:dragon: The main repository for all narrowspark components.
MIT License
16 stars 2 forks source link

Create a bootstrap configuration file for the BootstrapManager #729

Closed prisis closed 6 years ago

prisis commented 6 years ago

Is your feature request related to a problem? Please describe. Make it easier to add bootstrap class to the kernel.

Describe the solution you'd like The bootstrap class has function with needed data, like in this example:

use Viserio\Component\Contract\Foundation\Kernel as KernelContract;

interface BootstrapState
{
    public const TYPE_BEFORE = 'before';
    public const TYPE_AFTER = 'after';

    public static function getType(): string;

    public static function getBootstrapper(): string;
}

interface Bootstrap
{
        public static function getPriority(): int;

    public static function bootstrap(KernelContract $kernel): void;
}

Describe alternatives you've considered

Teachability, Documentation, Adoption, Migration Strategy