I did something like this back in 5.6 that required some really funky workarounds. Today I would recommend the following approach (what I did with PGObject's registered type system).
"$plugin_registry->{$extension}"->can('extract_files')->($path);
This approach allows you to add whatever extensions you want and have them register themselves (through an API) which can check for the extract_files interface and add to the registry.
In reply to Re^3: Need help to build a framework
by einhverfr
in thread Need help to build a framework
by sriram83.life
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |