Neos\Flow\Composer\InstallerScripts::runPackageScripts PHP Метод

runPackageScripts() защищенный статический Метод

Calls a static method from it's string representation
protected static runPackageScripts ( string $staticMethodReference ) : void
$staticMethodReference string
Результат void
    protected static function runPackageScripts($staticMethodReference)
    {
        $className = substr($staticMethodReference, 0, strpos($staticMethodReference, '::'));
        $methodName = substr($staticMethodReference, strpos($staticMethodReference, '::') + 2);
        if (!class_exists($className)) {
            throw new Exception\InvalidConfigurationException('Class "' . $className . '" is not autoloadable, can not call "' . $staticMethodReference . '"', 1348751076);
        }
        if (!is_callable($staticMethodReference)) {
            throw new Exception\InvalidConfigurationException('Method "' . $staticMethodReference . '" is not callable', 1348751082);
        }
        $className::$methodName();
    }