Skip to content

Commit

Permalink
Deprecate new_anon due to controller incompatibilities
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrtj committed Jul 3, 2024
1 parent 00337c2 commit b2edf2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Revision history for Kelp
- Kelp's req and res were moved to Context and are now just facades
- Added persistent_controllers config, which makes the system keep the reblessed instances

[Deprecations]
- new_anon method of Kelp is now deprecated due to incompatibilities with controllers

2.14 - 2024-07-02
[Changes]
- Fixed config files having incorrect line endings on Windows due to raw slurp
Expand Down
4 changes: 4 additions & 0 deletions lib/Kelp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,10 @@ A standard constructor. B<Cannot> be called multiple times: see L</new_anon>.
my $kelp1 = KelpApp->new_anon(config => 'conf1');
my $kelp2 = KelpApp->new_anon(config => 'conf2');
B<Deprecated>. This only solves the problem in non-controller scenario and will
completely break with reblessing. It's usually better to treat every Kelp app
more or less like a singleton.
A constructor that can be called repeatedly. Cannot be mixed with L</new>.
It works by creating a new anonymous class extending the class of your
Expand Down

0 comments on commit b2edf2a

Please sign in to comment.