DatabaseUpdatedPrerequisite implements PrerequisiteInterface, ChattyInterface
Prerequisite for upgrade wizards to ensure the database is up-to-date
Table of Contents
Interfaces
- PrerequisiteInterface
- UpgradeWizard Prerequisites
- ChattyInterface
- Is this upgradeWizard chatty aka does it need to output things?
Properties
- $output : OutputInterface
Methods
- __construct() : mixed
- ensure() : bool
- Ensure this prerequisite is fulfilled
- getTitle() : string
- Get speaking name of this prerequisite
- isFulfilled() : bool
- Is this prerequisite met?
- setOutput() : void
- Setter injection for output into upgrade wizards
Properties
$output
protected
OutputInterface
$output
Methods
__construct()
public
__construct(DatabaseUpgradeWizardsService $databaseUpgradeWizardsService) : mixed
Parameters
- $databaseUpgradeWizardsService : DatabaseUpgradeWizardsService
ensure()
Ensure this prerequisite is fulfilled
public
ensure() : bool
Gets called if "isFulfilled" returns false and should ensure the prerequisite
Returns true on success, false on error
Return values
boolgetTitle()
Get speaking name of this prerequisite
public
getTitle() : string
Return values
stringisFulfilled()
Is this prerequisite met?
public
isFulfilled() : bool
Checks whether this prerequisite is fulfilled. If it is not, ensure should be called to fulfill it.
Return values
boolsetOutput()
Setter injection for output into upgrade wizards
public
setOutput(OutputInterface $output) : void
Parameters
- $output : OutputInterface