summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-08-11 11:12:49 +0200
committerfranck cuny <franck@lumberjaph.net>2010-08-11 11:12:49 +0200
commit0d4d7d0d13bb122af3744bc5a61775c1bc8a978b (patch)
treef451db1848c10c456c78e080c187343aa12e89b0 /lib
parentinitial commit (diff)
downloadmoosex-abstractfactory-0d4d7d0d13bb122af3744bc5a61775c1bc8a978b.tar.gz
use Class::MOP::load_class instead of plain eval - if the module is not found, die with message (close RT#59776) master
Diffstat (limited to 'lib')
-rw-r--r--lib/MooseX/AbstractFactory/Role.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MooseX/AbstractFactory/Role.pm b/lib/MooseX/AbstractFactory/Role.pm
index d560ca9..3b27f60 100644
--- a/lib/MooseX/AbstractFactory/Role.pm
+++ b/lib/MooseX/AbstractFactory/Role.pm
@@ -22,7 +22,7 @@ sub create {
         # pull in our implementation class
         $factory->_validate_implementation_class($iclass);
 
-        eval "use $iclass";
+        Class::MOP::load_class($iclass);
 
         my $options = $factory->_options();