[Catalyst] prepare_body_chunk in Catalyst 5.9

Eric Wright ewright at linescale.com
Thu Jul 12 17:26:54 GMT 2012


Has something changed in Catalyst 5.9 with regards to prepare_body_chunk? I
had some dependent Plugin code that is no longer working.

None of the following method modifiers are triggered:

around 'prepare_body_chunk' =3D> sub {
    my ( $orig, $c, $chunk ) =3D @_;
    print STDERR "AROUND prepare_body_chunk\n";
    $c->$orig(@_);
};

before 'prepare_body_chunk' =3D> sub {
  my ($self) =3D @_;
  print STDERR "BEFORE prepare_body_chunk\n";
};

after 'prepare_body_chunk' =3D> sub {
  my ($self) =3D @_;
  print STDERR "AFTER prepare_body_chunk\n";
};

I am able to hook into other parts of the Catalyst lifecycle like
"prepare_body" and "dispatch". Am I overlooking something obvious here?

Any idea what could be wrong?

-Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20120712/27789=
bb0/attachment.htm


More information about the Catalyst mailing list