From: Shawn M Moore Date: Thu, 5 Feb 2009 00:51:11 +0000 (+0000) Subject: Add a shim Mouse::TypeRegistry that warns and sends you over to X-Git-Tag: 0.19~61 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8c1b1ec86d35344aebf896b1249827c8a816cc2e;p=gitmo%2FMouse.git Add a shim Mouse::TypeRegistry that warns and sends you over to Mouse::Util::TypeConstraints --- diff --git a/lib/Mouse/TypeRegistry.pm b/lib/Mouse/TypeRegistry.pm new file mode 100644 index 0000000..09c38e8 --- /dev/null +++ b/lib/Mouse/TypeRegistry.pm @@ -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; +