30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-06-01 05:50:52 +00:00

Add constructor to RoboFile

This commit is contained in:
Francesco Abeni 2015-10-31 11:31:08 +01:00
parent 8278e96032
commit b471903a06

View File

@ -21,6 +21,19 @@ class RoboFile extends \Robo\Tasks
private $cmsPath = ''; 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 * Set the Execute extension for Windows Operating System
* *
@ -43,12 +56,6 @@ class RoboFile extends \Robo\Tasks
*/ */
public function runTests($use_htaccess = false) public function runTests($use_htaccess = false)
{ {
$this->configuration = $this->getConfiguration();
$this->cmsPath = $this->getCmsPath();
$this->setExecExtension();
$this->createTestingSite($use_htaccess); $this->createTestingSite($use_htaccess);
$this->getComposer(); $this->getComposer();