Add interface for installers

refs #7163
This commit is contained in:
Johannes Meyer 2014-09-29 14:18:50 +02:00
parent 07d25e8bed
commit 5d6391242c
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
<?php
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
namespace Icinga\Web\Setup;
/**
* Interface for installers providing a summary and action report
*/
interface Installer
{
/**
* Run the installation and return whether it succeeded
*
* @return bool
*/
public function run();
/**
* Return a summary of all actions designated to run
*
* @return array
*/
public function getSummary();
/**
* Return a report of all actions that were run
*
* @return array
*/
public function getReport();
}