Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields
AppInterface Interface Reference
Inheritance diagram for AppInterface:
UserConfig Cron Http StaticResource Indexer Media

Public Member Functions

 launch ()
 
 catchException (App\Bootstrap $bootstrap, \Exception $exception)
 

Data Fields

const DISTRO_LOCALE_CODE = 'en_US'
 

Detailed Description

Different magento entry points call corresponding applications after platform is bootstrapped. index.php in webroot calls HTTP application (implementation of this interface) as it is responsible for web requests. cron.php entry point calls cron application Implementations of this interface should implement application type specific initialization.

@api

Since
100.0.2

Definition at line 19 of file AppInterface.php.

Member Function Documentation

◆ catchException()

catchException ( App\Bootstrap  $bootstrap,
\Exception  $exception 
)

Ability to handle exceptions that may have occurred during bootstrap and launch

Return values:

  • true: exception has been handled, no additional action is needed
  • false: exception has not been handled - pass the control to Bootstrap
Parameters
App\Bootstrap$bootstrap
\Exception$exception
Returns
bool

◆ launch()

launch ( )

Launch application

Returns
\Magento\Framework\App\ResponseInterface

Implemented in StaticResource, UserConfig, and Indexer.

Field Documentation

◆ DISTRO_LOCALE_CODE

const DISTRO_LOCALE_CODE = 'en_US'

Default application locale

Definition at line 24 of file AppInterface.php.


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