Flarum\Extension\ExtensionManager::getEnabledBootstrappers PHP Method

getEnabledBootstrappers() public method

Loads all bootstrap.php files of the enabled extensions.
public getEnabledBootstrappers ( ) : Collection
return Illuminate\Support\Collection
    public function getEnabledBootstrappers()
    {
        $bootstrappers = new Collection();
        foreach ($this->getEnabledExtensions() as $extension) {
            if ($this->filesystem->exists($file = $extension->getPath() . '/bootstrap.php')) {
                $bootstrappers->push($file);
            }
        }
        return $bootstrappers;
    }