Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/setup/src/Magento/Setup/Model/
Upload File :
Current File : /var/www/clients/client3/web2/web/setup/src/Magento/Setup/Model/PhpInformation.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

namespace Magento\Setup\Model;

/**
 * Class PhpInformation
 *
 * Provides information and checks about the current and required PHP settings.
 */
class PhpInformation
{

    /**
     * Allowed XDebug nested level
     */
    const XDEBUG_NESTED_LEVEL = 200;

    /**
     * List of currently installed extensions
     *
     * @var array
     */
    protected $current = [];

    /**
     * Returns minimum required XDebug nested level
     * @return int
     */
    public function getRequiredMinimumXDebugNestedLevel()
    {
        return self::XDEBUG_NESTED_LEVEL;
    }

    /**
     * Retrieve list of currently installed extensions
     *
     * @return array
     */
    public function getCurrent()
    {
        if (!$this->current) {
            $this->current = array_map(function ($ext) {
                return str_replace(' ', '-', strtolower($ext));
            }, get_loaded_extensions());
        }
        return $this->current;
    }
}