initial import of App::SCS code
[scpubgit/App-SCS.git] / lib / App / SCS / Web.pm
CommitLineData
632f0e07 1package App::SCS::Web;
2
3use Safe::Isa;
4use Web::Simple;
5
6has app => (is => 'ro', weak_ref => 1, required => 1);
7
8has _page_dispatchers => (is => 'lazy');
9
10sub _build__page_dispatchers {
11 my ($self) = @_;
12 [ map $_->page_dispatchers, reverse @{$self->app->plugins} ]
13}
14
15has _page_dispatchers => (is => 'lazy');
16
17sub _build__page_dispatchers {
18 my ($self) = @_;
19 [ map $_->page_dispatchers, reverse @{$self->app->plugins} ]
20}
21
22sub dispatch_request {
23 my ($self) = @_;
24 return @{$self->_page_dispatchers};
25}
26
271;