-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
'session' attribute was removed from Core::Context Moved from Core::Context to Core::App: * destroyed_session (attribute) * _build_session (replaced the temp. writer) * has_session * destroy_session Added the clearer 'clear_destroyed_session' to 'destroyed_session' attribute and now it runs in app_cleanup. (this is to make sure we don't keep a destroyed session for the next request -- that was a fun debugging session) Dispatcher now takes curr_session instead of curr_context as optional parameter (in forward). Some docs references to Context where changed to App. This is a major step forward in the effort to remove Core::Context (almost there)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,7 @@ sub _compile_keyword { | |
my $code = $compiled_code; | ||
$compiled_code = sub { | ||
croak "Function '$keyword' must be called from a route handler" | ||
unless defined $self->app->context; | ||
unless defined $self->app; | ||
This comment has been minimized.
Sorry, something went wrong.
dams
Contributor
|
||
$code->(@_); | ||
}; | ||
} | ||
|
Wondering if
app->destroy_session
should just becomedestroy_session
, a (non-global) DSL keyword?