Exemplo n.º 1
0
 public function write(Reflector $reflector)
 {
     $data = $reflector->toArray();
     $hash = hash_file('sha256', $data['getFileName']);
     $fileSize = filesize($data['getFileName']);
     self::$config = [$data['getClassName'] => $data + ['fileSize' => $fileSize, 'fileHash' => $hash]] + self::$config;
     $this->fs->dumpFile(self::PATH . '/config.php', "<?php return " . $this->renderArray(self::$config) . "; " . PHP_EOL . '/*' . PHP_EOL . print_r(self::$config, true) . PHP_EOL . '*/' . PHP_EOL);
 }