# See Catalyst-Plugin-Server for them being added to, which should be much less ugly.
# Preload these action types
-our @PRELOAD = qw/Index Path Regex/;
+our @PRELOAD = qw/Index Path/;
# Postload these action types
our @POSTLOAD = qw/Default/;
# FIXME - Some error checking and re-throwing needed here, as
# we eat exceptions loading dispatch types.
eval { Class::MOP::load_class($class) };
- push( @{ $self->dispatch_types }, $class->new ) unless $@;
+ if( $@ ){
+ warn( "Attempt to use deprecated $key dispatch type.\n"
+ . " Use Chained methods instead or install\n"
+ . " Catalyst::DispatchType::Regex if necessary.\n")
+ if $key =~ /^(Local)?Regex$/;
+ } else {
+ push( @{ $self->dispatch_types }, $class->new );
+ }
$registered->{$class} = 1;
}
}
$package_hash{$class}++ || do {
warn("Class $class is calling the deprecated method\n"
. " Catalyst::Dispatcher::$public_method_name,\n"
- . " this will be removed in Catalyst 5.9X\n");
+ . " this will be removed in Catalyst 5.9\n");
};
});
}