Back to UpdateCoreCommand class

Method extractFile

public array
extractFile
(mixed $file)
Extracts Update file
Parameters
  • string $file Full path to file location
Returns
  • array | boolean
Since
  • 4.0.0

Method extractFile - Source code

/**
 * Extracts Update file
 *
 * @param   string  $file  Full path to file location
 *
 * @return array | boolean
 *
 * @since 4.0.0
 */
public function extractFile($file)
{
    $package = InstallerHelper::unpack($file, true);
    return $package;
}