PerlDancer / Dancer2

Perl Dancer Next Generation (rewrite of Perl Dancer)
http://perldancer.org/
Other
542 stars 274 forks source link

Deprecated core Request instance method: request->dispatch_path #1651

Closed xsawyerx closed 11 months ago

xsawyerx commented 2 years ago

Why?

Originally, request->path() (which is the path() method on Dancer2::Core::Request) had a broken implementation. We created the method dispatch_path() (which you could call as request->dispatch_path()). Since then, we fixed the method path() and moved the internal code to use it instead.

Benefits to Dancer2 codebase

Removing unnecessary method that only existed due to a now-fixed originally-broken implementation.

Benefit to Dancer2 Community

It is unlikely that anyone had been publicly using this since it has been warning since 2017.

Alternatives

Use the app keyword instead.

cromedome commented 11 months ago

Deprecated in #1696. Closing.