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

Public Member Functions

 __construct (State $state, Console\Request $request, Console\Response $response, ObjectManagerInterface $objectManager, array $parameters=[], \Magento\Framework\App\AreaList $areaList=null)
 
 catchException (App\Bootstrap $bootstrap, \Exception $exception)
 
- Public Member Functions inherited from AppInterface
 launch ()
 
 catchException (App\Bootstrap $bootstrap, \Exception $exception)
 

Protected Attributes

 $_state
 
 $_request
 
 $_response
 

Additional Inherited Members

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

Detailed Description

@SuppressWarnings(PHPMD.CouplingBetweenObjects)

Definition at line 16 of file Cron.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( State  $state,
Console\Request  $request,
Console\Response  $response,
ObjectManagerInterface  $objectManager,
array  $parameters = [],
\Magento\Framework\App\AreaList  $areaList = null 
)

Inject dependencies

Parameters
State$state
Console\Request$request
Console\Response$response
ObjectManagerInterface$objectManager
array$parameters
AreaList | null$areaList

Definition at line 55 of file Cron.php.

62  {
63  $this->_state = $state;
64  $this->_request = $request;
65  $this->_request->setParams($parameters);
66  $this->_response = $response;
67  $this->objectManager = $objectManager;
68  $this->areaList = $areaList ? $areaList : $this->objectManager->get(\Magento\Framework\App\AreaList::class);
69  }
$response
Definition: 404.php:11

Member Function Documentation

◆ catchException()

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

{}

Definition at line 94 of file Cron.php.

95  {
96  return false;
97  }

Field Documentation

◆ $_request

$_request
protected

Definition at line 26 of file Cron.php.

◆ $_response

$_response
protected

Definition at line 31 of file Cron.php.

◆ $_state

$_state
protected

Definition at line 21 of file Cron.php.


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