Remove register_implementation, warn about future deprecation
[gitmo/MooseX-AttributeHelpers.git] / lib / MooseX / AttributeHelpers / Trait / Collection / Bag.pm
index 5dd0af4..56d47d3 100644 (file)
@@ -3,7 +3,8 @@ package MooseX::AttributeHelpers::Trait::Collection::Bag;
 use Moose::Role;
 use Moose::Util::TypeConstraints;
 
-our $VERSION   = '0.01';
+our $VERSION   = '0.19';
+$VERSION = eval $VERSION;
 our $AUTHORITY = 'cpan:STEVAN';
 
 use MooseX::AttributeHelpers::MethodProvider::Bag;
@@ -17,8 +18,7 @@ has 'method_provider' => (
     default   => 'MooseX::AttributeHelpers::MethodProvider::Bag'
 );
 
-subtype 'Bag' => as 'HashRef[Int]'
-    unless find_type_constraint('Bag');
+subtype 'Bag' => as 'HashRef[Int]';
 
 sub helper_type { 'Bag' }
 
@@ -36,13 +36,6 @@ before 'process_options_for_provides' => sub {
 no Moose::Role;
 no Moose::Util::TypeConstraints;
 
-# register the alias ...
-package # hide me from search.cpan.org
-    Moose::Meta::Attribute::Custom::Trait::Collection::Bag;
-sub register_implementation {
-    'MooseX::AttributeHelpers::Trait::Collection::Bag'
-}
-
 1;
 
 __END__
@@ -106,7 +99,7 @@ Stevan Little E<lt>stevan@iinteractive.comE<gt>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright 2007-2008 by Infinity Interactive, Inc.
+Copyright 2007-2009 by Infinity Interactive, Inc.
 
 L<http://www.iinteractive.com>
 
@@ -114,4 +107,3 @@ This library is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself.
 
 =cut
-