Commit | Line | Data |
c2cb1fed |
1 | package Moo::sification; |
2 | |
3 | use strictures 1; |
19e0e749 |
4 | use Moo::_Utils (); |
c2cb1fed |
5 | |
6b90ff03 |
6 | sub unimport { our $disarmed = 1 } |
dbae620d |
7 | |
c2cb1fed |
8 | sub Moo::HandleMoose::AuthorityHack::DESTROY { |
19e0e749 |
9 | unless (our $disarmed or Moo::_Utils::_in_global_destruction) { |
dbae620d |
10 | require Moo::HandleMoose; |
11 | Moo::HandleMoose->import; |
12 | } |
c2cb1fed |
13 | } |
14 | |
15 | if ($INC{"Moose.pm"}) { |
16 | require Moo::HandleMoose; |
17 | Moo::HandleMoose->import; |
18 | } else { |
19 | $Moose::AUTHORITY = bless({}, 'Moo::HandleMoose::AuthorityHack'); |
20 | } |
21 | |
22 | 1; |