Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields | Protected Attributes
PhpInformation Class Reference

Public Member Functions

 getRequiredMinimumXDebugNestedLevel ()
 
 getCurrent ()
 

Data Fields

const XDEBUG_NESTED_LEVEL = 200
 

Protected Attributes

 $current = []
 

Detailed Description

Class PhpInformation

Provides information and checks about the current and required PHP settings.

Definition at line 14 of file PhpInformation.php.

Member Function Documentation

◆ getCurrent()

getCurrent ( )

Retrieve list of currently installed extensions

Returns
array

Definition at line 43 of file PhpInformation.php.

44  {
45  if (!$this->current) {
46  $this->current = array_map(function ($ext) {
47  return str_replace(' ', '-', strtolower($ext));
48  }, get_loaded_extensions());
49  }
50  return $this->current;
51  }

◆ getRequiredMinimumXDebugNestedLevel()

getRequiredMinimumXDebugNestedLevel ( )

Returns minimum required XDebug nested level

Returns
int

Definition at line 33 of file PhpInformation.php.

Field Documentation

◆ $current

$current = []
protected

Definition at line 27 of file PhpInformation.php.

◆ XDEBUG_NESTED_LEVEL

const XDEBUG_NESTED_LEVEL = 200

Allowed XDebug nested level

Definition at line 20 of file PhpInformation.php.


The documentation for this class was generated from the following file: