Added workaround for stupid components expecting Catalyst::Base::new()
Sebastian Riedel [Thu, 3 Nov 2005 16:26:11 +0000 (16:26 +0000)]
lib/Catalyst/Base.pm

index 6a97984..dd93038 100644 (file)
@@ -12,6 +12,9 @@ __PACKAGE__->mk_classdata($_) for qw/_dispatch_steps/;
 
 __PACKAGE__->_dispatch_steps( [qw/_BEGIN _AUTO _ACTION/] );
 
+# Fix for stupid components
+*new = \&Catalyst::Component::new;
+
 sub _DISPATCH : Private {
     my ( $self, $c ) = @_;