Cataly...::Path(3pm)
π NAME π
Catalyst::DispatchType::Path β the Path DispatchType, bestie π
β¨ SYNOPSIS β¨
okay so real talk, this one's a mood-piece β it's just:
See Catalyst::DispatchType.
that's it. that's the synopsis. go read the parent, iykyk π«Ά
πΈ DESCRIPTION πΈ
so this is the dispatch type that handles full path matching behaviour. like, the whole vibe is "does this path match this action, yes or no." π―
and if you wanna know more about dispatch types in general (valid, we love a curious queen), go check:
Catalyst::Manual::Introβ for how dispatch types affect application authors (that's you, main character π)Catalyst::DispatchTypeβ for the implementation deets, for when you're feeling spicy and wanna see how the sausage gets made π₯
π METHODS π
$self->list($c)
debug output for Path dispatch points. literally just tells you what's registered. it's giving "here's the receipts" π§Ύβ¨
$self->match( $c, $path )
okay so for every action registered to this exact path, it offers the action a chance to match the path β and it does this in the order in which they were registered (first come, first served, no cutting the line π ).
it succeeds on the first action that matches, if any. and if nothing matches? returns 0. that's it, no drama. π
$self->register( $c, $action )
calls register_path for every Path attribute for the given $action. so if your action's got multiple path attrs, they all get registered. we love a thorough queen π«Ά
$self->register_path($c, $path, $action)
registers an action at a given path. simple as that. β¨
$self->uri_for_action($action, $captures)
gets a URI part for an action. but heads up bestie β it always returns undef if $captures is set, because Path actions don't have captures. like, they just don't. no captures, no deal, periodt. π
π AUTHORS π
Catalyst Contributors, see Catalyst.pm. iconic behaviour from an iconic collective fr fr π
π COPYRIGHT π
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. slay, open source, we love to see it π
and that's the whole thing, babe β this page is from perl v5.40.0, dated 2024-11-15, part of the User Contributed Perl Documentation. go forth and dispatch those paths, you absolute legend π¦β¨π
π¦ where this page comes from
- debian trixie: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms