Closed szepeviktor closed 3 years ago
Thanks for brining this discussion up, @szepeviktor. A few months ago I had considered the same thing but given how the class names were already defined I didn't move forward with this. Can you please provide a little more clarity on how you'd introduce this change?
@coreykn Simply
final class Cache_Enabler_Disk {
👇
namespace KeyCDN\WordPress\Cache_Enabler;
final class Disk {
...and of course modify the autoloader and \add_action( 'plugins_loaded', array( __NAMESPACE__ . '\\Plugin', 'init' ) );
Thank you for the confirmation. 🙂 Unfortunately I don't think this would be a good idea due to how the current classes are used out in the wild between Cache Enabler users and third party plugins.
I suspected BC will be a blocker.
It is extreeemly hard to ship software to users armed with a mouse 🐁
...although we may add class_alias()
...
Would you welcome a PR introducing namespaces?
namespace KeyCDN\WordPress\Cache_Enabler;