diff --git a/includes/class-jwt-auth.php b/includes/class-jwt-auth.php index 7212ddf..cb1f9d2 100755 --- a/includes/class-jwt-auth.php +++ b/includes/class-jwt-auth.php @@ -105,10 +105,11 @@ private function load_dependencies() { require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-jwt-auth-i18n.php'; /** - * The class responsible for creating a unique namespace to load the JWT & Key - * classes of this plugin + * Class responsible for creating a `wrapper namespace` to load the Firebase's JWT & Key + * classes and prevent conflicts with other plugins using the same library + * with different versions. */ - require_once plugin_dir_path(dirname(__FILE__)) . 'includes/extend-classes.php'; + require_once plugin_dir_path(dirname(__FILE__)) . 'includes/class-jwt-namespace-wrapper.php'; /** * The class responsible for defining all actions that occur in the public-facing diff --git a/includes/class-jwt-namespace-wrapper.php b/includes/class-jwt-namespace-wrapper.php new file mode 100644 index 0000000..befcf08 --- /dev/null +++ b/includes/class-jwt-namespace-wrapper.php @@ -0,0 +1,18 @@ +