Subject: | Broken by Catalyst::Runtime 5.80 |
This breaks, are returning a non-object value from a COMPONENT method
doesn't make sense..
sub new {
my $class = shift;
my ($app) = @_;
my $self = $class->next::method(@_);
if ( $app->config->{on_controller_disable} ) {
return bless {}, 'Catalyst::Controller::AllowDisable::Disabled';
}
return $self;
}
would work better, as a suggestion...