Add a shim Mouse::TypeRegistry that warns and sends you over to
Shawn M Moore [Thu, 5 Feb 2009 00:51:11 +0000 (00:51 +0000)]
Mouse::Util::TypeConstraints

lib/Mouse/TypeRegistry.pm [new file with mode: 0644]

diff --git a/lib/Mouse/TypeRegistry.pm b/lib/Mouse/TypeRegistry.pm
new file mode 100644 (file)
index 0000000..09c38e8
--- /dev/null
@@ -0,0 +1,21 @@
+package Mouse::TypeRegistry;
+use Mouse::Util::TypeConstraints;
+
+sub import {
+    warn "Mouse::TypeRegistry is deprecated, please use Mouse::Util::TypeConstraints instead.";
+
+    shift @_;
+    unshift @_, 'Mouse::Util::TypeConstraints';
+    goto \&Mouse::Util::TypeConstraints::import;
+}
+
+sub unimport {
+    warn "Mouse::TypeRegistry is deprecated, please use Mouse::Util::TypeConstraints instead.";
+
+    shift @_;
+    unshift @_, 'Mouse::Util::TypeConstraints';
+    goto \&Mouse::Util::TypeConstraints::unimport;
+}
+
+1;
+