Sod back-compat on the insane cases, start the upgrading documentation
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Upgrading.pod
CommitLineData
7e2ec16e 1=head1 Upgrading to Catalyst 5.80
2
3Work in progress
4
5=head1 Known backwards compatibility breakages.
6
7=head2 Catalyst::Plugin::Authentication
8
9You need at least version FIXME of Catalyst::Plugin::Authentication.
10
11=head2 Moose applications
12
13Applications made by early adopters, which say:
14
15 extends qw/Moose::Object Catalyst::Component/
16
17need the C<Moose::Object> removing to run with Catalyst 5.80, otherwise
18your Class' @ISA will not linearise with C3.
19
20rafl to fix this bit :)
21
22=head2 Components without new methods
23
24FIXME
25
26=head2 Components without COMPONENT methods
27
28FIXME
29
30=head2 __PACKAGE__->mk_accessor('meta');
31
32Won't work due to a limitation of L<MooseX::Emulate::Class::Accessor::Fast>
33
34FIXME
35
36=head2 Class::Data::Inheritable side effects
37
38FIXME
39
40=head2 Extending Catalyst::Request or other classes in an ad-hoc manor using mk_accessor
41
42FIXME
43
44=head2 require $class was successful but the package is not defined.
45
46FIXME Warning
47
48=head2 Components which inherit Catalyst::Component's COMPONENT method, who's new method does not return a true value.
49
50Previously if your new method returned a false value, then your class' configuration would be blessed into a hash on your behalf,
51and this would be returned from the COMPONENT method. This is no longer supported. You are not recommended to implement your own new method
52in components, instead, you should inherit the new method from Catalyst::Component, and use Moose's BUILD functionality
53to perform any construction work necessary for your sub-class.
54
55
56=head Methods in Catalyst::Dispatcher
57
58 Class $class is calling the deprecated method Catalyst::Dispatcher::$public_method_name,\n"
59 . "this will be removed in Catalyst 5.9X"
60
61FIXME
62
63=head2 Confused multiple inheritence with Catalyst::Component::COMPONENT
64
65Warning message:
66
67 There is a COMPONENT method resolving after Catalyst::Component
68 in ${next_package}.
69
70This means that one of the packages on the right hand side of
71Catalyst::Component in your Class' inheritance hierarchy defines
72a COMPONENT method.
73
74Previously, Catalyst's COMPONENT method would delegate to the
75method on the right hand side, which could then delegate back again
76with NEXT. This (as it is insane), is no longer supported, as it
77makes no sense with C3 method dispatch order.
78
79Therefore the correct fix is to re-arrange your class' inheritance
80hierarchy so that the COMPONENT method you would like to inherit is
81the first COMPONENT method in your @ISA.
82
83
84=cut