class UpdateManager

TastyIgniter Updates Manager Class

Traits

Singleton trait.

Properties

static protected $instance from  Singleton
protected $logs
protected OutputStyle $logsOutput

The output interface implementation.

protected $baseDirectory
protected $tempDirectory
protected $logFile
protected $updatedFiles
protected $installedItems
protected ThemeManager $themeManager
protected HubManager $hubManager
protected ExtensionManager $extensionManager
protected Migrator $migrator
protected DatabaseMigrationRepository $repository
protected $disableCoreUpdates

Methods

static 
instance()

Create a new instance of this singleton.

static 
forgetInstance()

Forget this singleton's instance if it exists

__construct()

Constructor.

initialize()

No description

__clone()

No description

__wakeup()

No description

bindContainerObjects()

No description

$this
setLogsOutput(OutputStyle $output)

Set the output implementation that should be used by the console.

log($message)

No description

resetLogs()

No description

getLogs()

No description

down()

No description

update()

No description

setCoreVersion($version = null, $hash = null)

No description

prepareDatabase()

No description

migrateApp($name)

No description

seedApp($name)

No description

migrateExtension($name)

No description

purgeExtension($name)

No description

string
getMigrationPath(string $name)

Get migration directory path.

isLastCheckDue()

No description

listItems($itemType)

No description

searchItems($itemType, $searchQuery)

No description

getSiteDetail()

No description

applySiteDetail($key)

No description

requestUpdateList($force = FALSE)

No description

getInstalledItems($type = null)

No description

requestApplyItems($names)

No description

ignoreUpdates($names)

No description

getIgnoredUpdates()

No description

isMarkedAsIgnored($code)

No description

setSecurityKey($key, $info)

No description

downloadFile($fileCode, $fileHash, $params = [])

No description

extractCore($fileCode)

No description

extractFile($fileCode, $extractTo = null)

No description

getFilePath($fileCode)

No description

getHubManager()

No description

parseTagDescription($update)

No description

Details

in Singleton at line 18
final static instance()

Create a new instance of this singleton.

in Singleton at line 28
final static forgetInstance()

Forget this singleton's instance if it exists

in Singleton at line 36
final protected __construct()

Constructor.

at line 70
initialize()

No description

in Singleton at line 48
__clone()

No description

in Singleton at line 53
__wakeup()

No description

at line 83
bindContainerObjects()

No description

at line 95
$this setLogsOutput(OutputStyle $output)

Set the output implementation that should be used by the console.

Parameters

OutputStyle $output

Return Value

$this

at line 103
log($message)

No description

Parameters

$message

at line 116
UpdateManager resetLogs()

No description

Return Value

UpdateManager $this

at line 123
getLogs()

No description

at line 132
down()

No description

at line 153
update()

No description

at line 179
setCoreVersion($version = null, $hash = null)

No description

Parameters

$version
$hash

at line 189
protected prepareDatabase()

No description

at line 205
migrateApp($name)

No description

Parameters

$name

at line 216
seedApp($name)

No description

Parameters

$name

at line 230
migrateExtension($name)

No description

Parameters

$name

at line 246
purgeExtension($name)

No description

Parameters

$name

at line 269
protected string getMigrationPath(string $name)

Get migration directory path.

Parameters

string $name

Return Value

string

at line 281
isLastCheckDue()

No description

at line 292
listItems($itemType)

No description

Parameters

$itemType

at line 313
searchItems($itemType, $searchQuery)

No description

Parameters

$itemType
$searchQuery

at line 331
getSiteDetail()

No description

at line 336
applySiteDetail($key)

No description

Parameters

$key

at line 351
requestUpdateList($force = FALSE)

No description

Parameters

$force

at line 398
getInstalledItems($type = null)

No description

Parameters

$type

at line 430
requestApplyItems($names)

No description

Parameters

$names

at line 443
ignoreUpdates($names)

No description

Parameters

$names

at line 461
getIgnoredUpdates()

No description

at line 466
isMarkedAsIgnored($code)

No description

Parameters

$code

at line 473
setSecurityKey($key, $info)

No description

Parameters

$key
$info

at line 487
downloadFile($fileCode, $fileHash, $params = [])

No description

Parameters

$fileCode
$fileHash
$params

at line 497
extractCore($fileCode)

No description

Parameters

$fileCode

at line 513
extractFile($fileCode, $extractTo = null)

No description

Parameters

$fileCode
$extractTo

at line 537
getFilePath($fileCode)

No description

Parameters

$fileCode

at line 547
protected HubManager getHubManager()

No description

Return Value

HubManager

at line 552
protected parseTagDescription($update)

No description

Parameters

$update