Example #1
0
 public function __construct()
 {
     $this->fileCount = 0;
     $this->filesystem = new Filesystem();
     $this->rootDir = realpath(__DIR__ . '/../../../');
     // needed to get easybook version
     $app = new Application();
     $this->version = $app->getVersion();
     // temp directory to copy the essential easybook files
     $this->packageDir = $this->rootDir . '/app/Cache/easybook';
     // delete the directory if it existed previously
     if (file_exists($this->packageDir)) {
         $this->filesystem->remove($this->packageDir);
     }
     $this->filesystem->mkdir($this->packageDir);
 }