NEW restored Extension::__construct()

This commit is contained in:
Franco Springveldt 2017-06-23 15:13:55 +12:00
parent fa568e333e
commit d3d426bdfc
4 changed files with 7 additions and 0 deletions

View File

@ -44,6 +44,10 @@ abstract class Extension
*/ */
private $ownerStack = []; private $ownerStack = [];
public function __construct()
{
}
/** /**
* Called when this extension is added to a particular class * 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()) public function __construct($searchFields = array())
{ {
parent::__construct();
if (is_array($searchFields)) { if (is_array($searchFields)) {
$this->searchFields = $searchFields; $this->searchFields = $searchFields;
} else { } else {

View File

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

View File

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