diff options
| author | 2021-01-07 15:37:59 -0500 | |
|---|---|---|
| committer | 2021-01-07 21:37:59 +0100 | |
| commit | bfd872e885c72ac7ca9a6bcf9b6928c1d3e501cb (patch) | |
| tree | 104460575f3b4ac0e4f70c03bb2eb66acd93a674 /lib/Minz/ExtensionManager.php | |
| parent | 9aa3c038443a0807032d10657f841c8de0eb78d8 (diff) | |
Change base extension class type (#3333)
Before, there were some guidelines on how to use the extension class and how to extend it. Those guidelines were defined as comments.
Now, those guidelines are enforced by the code itself. There is no need for those comments anymore.
Diffstat (limited to 'lib/Minz/ExtensionManager.php')
| -rw-r--r-- | lib/Minz/ExtensionManager.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Minz/ExtensionManager.php b/lib/Minz/ExtensionManager.php index e24c6c30b..b2814e4a3 100644 --- a/lib/Minz/ExtensionManager.php +++ b/lib/Minz/ExtensionManager.php @@ -172,14 +172,6 @@ class Minz_ExtensionManager { '` is not an instance of `Minz_Extension`'); return null; } - $reflector = new ReflectionClass($extension); - $className = $reflector->getName(); - if ('Minz_Extension' === $reflector->getMethod('handleConfigureAction')->class || - 'Minz_Extension' === $reflector->getMethod('install')->class || - 'Minz_Extension' === $reflector->getMethod('init')->class || - 'Minz_Extension' === $reflector->getMethod('uninstall')->class) { - Minz_Log::error("The '{$className}' extension class definition is deprecated. It will continue to work with the current version but will break in the future. The '{$className}' extension class needs to override the 'handleConfigurationAction' method, the 'install' method, the 'init' method, and the 'uninstall' method to work properly."); - } return $extension; } |
