Created
October 21, 2021 17:40
-
-
Save MasterHans/4c3efef42eb36165b87e19e91fe9c863 to your computer and use it in GitHub Desktop.
PHP create class without constructor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getSettingsFieldsMap($providerName, $moduleName) | |
{ | |
Yii::import('application.modules.' . $moduleName . '.models.' . $providerName); | |
$reflection = new ReflectionClass($providerName); | |
$instance = $reflection->newInstanceWithoutConstructor(); | |
return $instance->getAttributeConfig(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment