Cataly...::Path(3pm)

πŸ“¦
version 5.90132 Β· 6 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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 πŸ’œ


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