예제 #1
0
 /**
  * copy applied sql file to the applied directory.
  *
  * @param SplFileInfo $file
  */
 public function copyToAppliedDir($file)
 {
     if (false === @copy($file->getPathName(), $this->appliedFilesDir . '/' . $file->getFileName())) {
         throw new RuntimeException('cannot copy the sql file to applied directory. check the <info>' . $this->appliedFilesDir . '</info> directory.');
     }
 }