src/Addons.php
public static function startAddon($addon_key) {
        $addon = static::enabled($addon_key);
        if (!$addon) {
            return false;
        }

        // Run the class' bootstrap.
        if ($bootstrap_path = val(self::K_BOOTSTRAP, $addon)) {
            include_once $bootstrap_path;
        }
        return true;
    }
public static function startAddon($addon_key) {
        $addon = static::enabled($addon_key);
        if (!$addon) {
            return false;
        }

        // Run the class' bootstrap.
        if ($bootstrap_path = val(self::K_BOOTSTRAP, $addon)) {
            include_once $bootstrap_path;
        }
        return true;
    }
Start an addon.

This function does the following:

1. Make the addon available in the autoloader.
2. Run the addon's bootstrap.php if it exists.

@param string $addon_key The key of the addon to enable.
@return bool Returns true if the addon was enabled. False otherwise.