ErpContainerCommand
abstract class ErpContainerCommand extends ContainerAwareCommand implements ErpContainerCommandInterface
Class ErpContainerCommand contains base methods for sync and log
Properties
| protected InputInterface | $input | ||
| protected OutputInterface | $output |
Methods
No description
Dispatch event and return result
Get container service
Cache all mappings in array
Get erp data key
Extract value for erp data
Write error message to console
Write success message to console
Write success and error messages to log file
Write max page parameter to file
Write duplicates to file
Details
at line 44
protected
execute(InputInterface $input, OutputInterface $output)
at line 68
protected mixed
dispatchEventWithResult(string $eventName, mixed $parameter = null)
Dispatch event and return result
at line 84
protected object
get(string $service)
Get container service
at line 97
protected array
getMappings(string $entity, mixed $params = null)
Cache all mappings in array
at line 178
protected mixed
getMappingsValueForKey(string $key, array $mappings)
Get erp data key
at line 203
protected mixed
getValueFromErpData(string $key, array $data, array $mappings)
Extract value for erp data
at line 218
protected
writeError(string $message)
Write error message to console
at line 229
protected
writeSuccess(string $message)
Write success message to console
at line 239
protected
writeLog(string $message)
Write success and error messages to log file
at line 254
static protected
setPage(int $page, int $maxPages, string $path)
Write max page parameter to file
at line 266
static protected
writteDuplicates(string $path, string $duplicates)
Write duplicates to file