32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-12-25 17:51:07 +00:00

Merge pull request #133 from therunnergit/issue-129

Add constructor to RoboFile
This commit is contained in:
javier gomez 2015-10-31 12:13:41 +01:00
commit b9d54a1b0a

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();