Converts cron parameters from XML files
Definition at line 11 of file Xml.php.
◆ convertCronConfig()
convertCronConfig |
( |
\DOMElement |
$jobConfig | ) |
|
|
protected |
Convert specific cron configurations
- Parameters
-
- Returns
- array
- Exceptions
-
Definition at line 63 of file Xml.php.
65 $instanceName = $jobConfig->getAttribute(
'instance');
66 $methodName = $jobConfig->getAttribute(
'method');
68 if (!isset($instanceName)) {
69 throw new \InvalidArgumentException(
'Attribute "instance" does not exist');
71 if (!isset($methodName)) {
72 throw new \InvalidArgumentException(
'Attribute "method" does not exist');
75 return [
'instance' => $instanceName,
'method' => $methodName];
The documentation for this class was generated from the following file:
- vendor/magento/module-cron/Model/Config/Converter/Xml.php