示例#1
0
 /**
  * {@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}";
 }
示例#2
0
 /**
  * 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;
 }