Merge pull request #7053 from creative-commoners/pulls/4.0/restore-extension-constructor

NEW restored Extension::__construct()
This commit is contained in:
Damian Mooyman 2017-06-26 21:39:55 +12:00 committed by GitHub
commit 17c8e913bc
4 changed files with 7 additions and 0 deletions

View File

@ -44,6 +44,10 @@ abstract class Extension
*/
private $ownerStack = [];
public function __construct()
{
}
/**
* Called when this extension is added to a particular class
*

View File

@ -88,6 +88,7 @@ class FulltextSearchable extends DataExtension
*/
public function __construct($searchFields = array())
{
parent::__construct();
if (is_array($searchFields)) {
$this->searchFields = $searchFields;
} else {

View File

@ -11,6 +11,7 @@ class ExtendTest2 extends Extension implements TestOnly
public function __construct()
{
parent::__construct();
$this->constructorArgs = func_get_args();
}

View File

@ -11,6 +11,7 @@ class ExtendTest3 extends Extension implements TestOnly
public function __construct()
{
parent::__construct();
$this->constructorArgs = func_get_args();
}