PHP Class Newscoop\Installer\Services\UpgradeService

Show file Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$connection
$monolog
$newscoopDir

Public Methods

Method Description
__construct ( Connection $connection, object $logger )
getDBVersion ( ) : array Get info about instance database versions
getDefaultAlias ( ) : string | null Gets default alias for the first publication
upgradeDatabase ( array $versionsArray, boolean $silent = false, boolean $showRolls = false ) : boolean Upgrade database

Method Details

__construct() public method

public __construct ( Connection $connection, object $logger )
$connection Connection
$logger object

getDBVersion() public method

Get info about instance database versions
public getDBVersion ( ) : array
return array Database verions

getDefaultAlias() public method

Gets default alias for the first publication
public getDefaultAlias ( ) : string | null
return string | null alias

upgradeDatabase() public method

Upgrade database
public upgradeDatabase ( array $versionsArray, boolean $silent = false, boolean $showRolls = false ) : boolean
$versionsArray array
$silent boolean
$showRolls boolean
return boolean

Property Details

$connection protected property

protected $connection

$monolog protected property

protected $monolog

$newscoopDir protected property

protected $newscoopDir