mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7053 from creative-commoners/pulls/4.0/restore-extension-constructor
NEW restored Extension::__construct()
This commit is contained in:
commit
17c8e913bc
@ -44,6 +44,10 @@ abstract class Extension
|
||||
*/
|
||||
private $ownerStack = [];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when this extension is added to a particular class
|
||||
*
|
||||
|
@ -88,6 +88,7 @@ class FulltextSearchable extends DataExtension
|
||||
*/
|
||||
public function __construct($searchFields = array())
|
||||
{
|
||||
parent::__construct();
|
||||
if (is_array($searchFields)) {
|
||||
$this->searchFields = $searchFields;
|
||||
} else {
|
||||
|
@ -11,6 +11,7 @@ class ExtendTest2 extends Extension implements TestOnly
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->constructorArgs = func_get_args();
|
||||
}
|
||||
|
||||
|
@ -11,6 +11,7 @@ class ExtendTest3 extends Extension implements TestOnly
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->constructorArgs = func_get_args();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user