src/Viserio/Component/Foundation/AbstractKernel.php
protected function getPreparedBootstraps(): array
    {
        $preparedBootstraps = [];

        /** @var \Viserio\Component\Contract\Foundation\Bootstrap $class */
        foreach ((array) require $this->getConfigPath('bootstrap.php') as $class => $data) {
            foreach ((array) $data as $type) {
                if (\in_array($type, static::$allowedBootstrapTypes, true)) {
                    $preparedBootstraps[$class::getPriority()][] = $class;
                }
            }
        }

        \ksort($preparedBootstraps);

        return $preparedBootstraps;
    }
protected function getPreparedBootstraps(): array
    {
        $preparedBootstraps = [];

        /** @var \Viserio\Component\Contract\Foundation\Bootstrap $class */
        foreach ((array) require $this->getConfigPath('bootstrap.php') as $class => $data) {
            foreach ((array) $data as $type) {
                if (\in_array($type, static::$allowedBootstrapTypes, true)) {
                    $preparedBootstraps[$class::getPriority()][] = $class;
                }
            }
        }

        \ksort($preparedBootstraps);

        return $preparedBootstraps;
    }
Returns prepared bootstrap classes, sorted and filtered after static::$allowedBootstrapTypes.

@return array