Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Http Class Reference
Inheritance diagram for Http:
AppInterface

Public Member Functions

 __construct (\Magento\Framework\ObjectManagerInterface $objectManager, Event\Manager $eventManager, AreaList $areaList, RequestHttp $request, ResponseHttp $response, ConfigLoaderInterface $configLoader, State $state, Filesystem $filesystem, \Magento\Framework\Registry $registry)
 
 catchException (Bootstrap $bootstrap, \Exception $exception)
 
- Public Member Functions inherited from AppInterface
 launch ()
 
 catchException (App\Bootstrap $bootstrap, \Exception $exception)
 

Protected Attributes

 $_objectManager
 
 $_eventManager
 
 $_areaList
 
 $_request
 
 $_configLoader
 
 $_state
 
 $_filesystem
 
 $_response
 
 $registry
 

Additional Inherited Members

- Data Fields inherited from AppInterface
const DISTRO_LOCALE_CODE = 'en_US'
 

Detailed Description

HTTP web application. Called from webroot index.php to serve web requests.

@SuppressWarnings(PHPMD.CouplingBetweenObjects)

Definition at line 22 of file Http.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Framework\ObjectManagerInterface  $objectManager,
Event\Manager  $eventManager,
AreaList  $areaList,
RequestHttp  $request,
ResponseHttp  $response,
ConfigLoaderInterface  $configLoader,
State  $state,
Filesystem  $filesystem,
\Magento\Framework\Registry  $registry 
)
Parameters
\Magento\Framework\ObjectManagerInterface$objectManager
Event\Manager$eventManager
AreaList$areaList
RequestHttp$request
ResponseHttp$response
ConfigLoaderInterface$configLoader
State$state
Filesystem$filesystem

Definition at line 85 of file Http.php.

95  {
96  $this->_objectManager = $objectManager;
97  $this->_eventManager = $eventManager;
98  $this->_areaList = $areaList;
99  $this->_request = $request;
100  $this->_response = $response;
101  $this->_configLoader = $configLoader;
102  $this->_state = $state;
103  $this->_filesystem = $filesystem;
104  $this->registry = $registry;
105  }
$response
Definition: 404.php:11
$objectManager
Definition: bootstrap.php:17
$filesystem

Member Function Documentation

◆ catchException()

catchException ( Bootstrap  $bootstrap,
\Exception  $exception 
)

{}

Definition at line 154 of file Http.php.

155  {
156  $result = $this->handleDeveloperMode($bootstrap, $exception)
157  || $this->handleBootstrapErrors($bootstrap, $exception)
158  || $this->handleSessionException($exception)
159  || $this->handleInitException($exception)
160  || $this->handleGenericReport($bootstrap, $exception);
161  return $result;
162  }
if(defined('TESTS_MAGENTO_INSTALLATION') &&TESTS_MAGENTO_INSTALLATION==='enabled') $bootstrap
Definition: bootstrap.php:73

Field Documentation

◆ $_areaList

$_areaList
protected

Definition at line 37 of file Http.php.

◆ $_configLoader

$_configLoader
protected

Definition at line 47 of file Http.php.

◆ $_eventManager

$_eventManager
protected

Definition at line 32 of file Http.php.

◆ $_filesystem

$_filesystem
protected

Definition at line 57 of file Http.php.

◆ $_objectManager

$_objectManager
protected

Definition at line 27 of file Http.php.

◆ $_request

$_request
protected

Definition at line 42 of file Http.php.

◆ $_response

$_response
protected

Definition at line 62 of file Http.php.

◆ $_state

$_state
protected

Definition at line 52 of file Http.php.

◆ $registry

$registry
protected

Definition at line 67 of file Http.php.


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