Add constructor to RoboFile

This commit is contained in:
Francesco Abeni 2015-10-31 11:31:08 +01:00
parent 8278e96032
commit b471903a06
1 changed files with 13 additions and 6 deletions

View File

@ -21,6 +21,19 @@ class RoboFile extends \Robo\Tasks
private $cmsPath = '';
/**
* Constructor
*/
public function __construct()
{
$this->configuration = $this->getConfiguration();
$this->cmsPath = $this->getCmsPath();
// TODO make this coherent with the above initializations
$this->setExecExtension();
}
/**
* Set the Execute extension for Windows Operating System
*
@ -43,12 +56,6 @@ class RoboFile extends \Robo\Tasks
*/
public function runTests($use_htaccess = false)
{
$this->configuration = $this->getConfiguration();
$this->cmsPath = $this->getCmsPath();
$this->setExecExtension();
$this->createTestingSite($use_htaccess);
$this->getComposer();