for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* TechDivision\Import\Plugins\GlobalDataPlugin
*
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* PHP version 5
* @author Tim Wagner <[email protected]>
* @copyright 2016 TechDivision GmbH <[email protected]>
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @link https://github.com/techdivision/import
* @link http://www.techdivision.com
*/
namespace TechDivision\Import\Plugins;
use TechDivision\Import\Utils\RegistryKeys;
* Plugin that loads the global data.
class GlobalDataPlugin extends AbstractPlugin
{
* Process the plugin functionality.
* @return void
* @throws \Exception Is thrown, if the plugin can not be processed
public function process()
// load the global data from the import processor
$globalData = $this->getImportProcessor()->getGlobalData();
// add the status with the global data
$this->getRegistryProcessor()->mergeAttributesRecursive(
$this->getSerial(),
array(RegistryKeys::GLOBAL_DATA => $globalData)
);
}