Craft\NeoPlugin::onBeforeInstall PHP Method

onBeforeInstall() public method

Checks for environment compatibility when installing.
public onBeforeInstall ( ) : boolean
return boolean
    public function onBeforeInstall()
    {
        $craftCompatible = $this->isCraftRequiredVersion();
        $phpCompatible = $this->isPHPRequiredVersion();
        if (!$craftCompatible) {
            self::log(Craft::t("Neo is not compatible with Craft {version} - requires Craft {required} or greater", ['version' => craft()->getVersion(), 'required' => $this->getCraftMinimumVersion()]), LogLevel::Error, true);
        }
        if (!$phpCompatible) {
            self::log(Craft::t("Neo is not compatible with PHP {version} - requires PHP {required} or greater", ['version' => PHP_VERSION, 'required' => $this->getPHPMinimumVersion()]), LogLevel::Error, true);
        }
        return $craftCompatible && $phpCompatible;
    }