[Moose-commits] r7546 - Mouse/trunk/lib/Mouse
sartak at code2.0beta.co.uk
sartak at code2.0beta.co.uk
Thu Feb 5 00:51:12 GMT 2009
Author: sartak
Date: 2009-02-04 16:51:11 -0800 (Wed, 04 Feb 2009)
New Revision: 7546
Added:
Mouse/trunk/lib/Mouse/TypeRegistry.pm
Log:
Add a shim Mouse::TypeRegistry that warns and sends you over to
Mouse::Util::TypeConstraints
Added: Mouse/trunk/lib/Mouse/TypeRegistry.pm
===================================================================
--- Mouse/trunk/lib/Mouse/TypeRegistry.pm (rev 0)
+++ Mouse/trunk/lib/Mouse/TypeRegistry.pm 2009-02-05 00:51:11 UTC (rev 7546)
@@ -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;
+
More information about the Moose-commits
mailing list