Last change
on this file since 2316 was
2316,
checked in by nanardon, 5 years ago
|
Call post-synchro in a efficient way
This patch add callback to base allowing to web part to know when
commit() were done. Then call_sync_batch is run only when commit were
successfully done.
|
File size:
760 bytes
|
Rev | Line | |
---|
[1329] | 1 | package LATMOS::Accounts::Web::Controller::Json; |
---|
[1191] | 2 | use Moose; |
---|
| 3 | use namespace::autoclean; |
---|
| 4 | |
---|
| 5 | BEGIN { extends 'Catalyst::Controller'; } |
---|
| 6 | |
---|
| 7 | =head1 NAME |
---|
| 8 | |
---|
[1329] | 9 | LATMOS::Accounts::Web::Controller::Json - Catalyst Controller |
---|
[1191] | 10 | |
---|
| 11 | =head1 DESCRIPTION |
---|
| 12 | |
---|
| 13 | Catalyst Controller. |
---|
| 14 | |
---|
| 15 | =head1 METHODS |
---|
| 16 | |
---|
| 17 | =cut |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | =head2 index |
---|
| 21 | |
---|
| 22 | =cut |
---|
| 23 | |
---|
| 24 | sub index :Path :Args(0) { |
---|
| 25 | my ( $self, $c ) = @_; |
---|
| 26 | |
---|
[1329] | 27 | $c->response->body('Matched LATMOS::Accounts::Web::Controller::Json in Json.'); |
---|
[1191] | 28 | } |
---|
| 29 | |
---|
[1329] | 30 | sub end : Private { |
---|
| 31 | my ( $self, $c ) = @_; |
---|
[2067] | 32 | |
---|
[1410] | 33 | $c->stash->{data} ||= {}; |
---|
[1329] | 34 | $c->forward($c->view('Json')); |
---|
| 35 | } |
---|
[1191] | 36 | |
---|
[1329] | 37 | =encoding utf8 |
---|
| 38 | |
---|
[1191] | 39 | =head1 AUTHOR |
---|
| 40 | |
---|
| 41 | olivier |
---|
| 42 | |
---|
| 43 | =head1 LICENSE |
---|
| 44 | |
---|
| 45 | This library is free software. You can redistribute it and/or modify |
---|
| 46 | it under the same terms as Perl itself. |
---|
| 47 | |
---|
| 48 | =cut |
---|
| 49 | |
---|
| 50 | __PACKAGE__->meta->make_immutable; |
---|
| 51 | |
---|
| 52 | 1; |
---|
Note: See
TracBrowser
for help on using the repository browser.