/** * {@inheritdoc} * @see AbstractUpdate::__construct() */ public function __construct(\SplFileInfo $fileInfo, \ArrayObject $collection) { parent::__construct($fileInfo, $collection); $timestamp = (new DateTime())->getTimestamp(); $this->temporary = "{$this->origin}_temporary_{$timestamp}"; $this->backup = "{$this->origin}_backup_{$timestamp}"; }
/** * UpdateCrypto * * {@inheritdoc} */ public function __construct(SplFileInfo $fileInfo, ArrayObject $collection) { parent::__construct($fileInfo, $collection); $this->source = \Scalr::getContainer()->crypto(MCRYPT_TRIPLEDES, MCRYPT_MODE_CFB, null, 24, 8); $this->globals = \Scalr::getContainer()->crypto(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CFB, null, mcrypt_get_key_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CFB), mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CFB)); $this->target = \Scalr::getContainer()->crypto; }