| 1 | # This software is copyright (c) 2004 Alex Robinson. | ||
| 2 | # It is free software and can be used under the same terms as perl, | ||
| 3 | # i.e. either the GNU Public Licence or the Artistic License. | ||
| 4 | |||
| 5 | package MasonX::Request::ExtendedCompRoot::WithApacheSession; | ||
| 6 | |||
| 7 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | our $VERSION = '0.03'; | |
| 10 | |||
| 11 | 1 | ▶ | use base qw(MasonX::Request::WithApacheSession MasonX::Request::ExtendedCompRoot); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | # | ||
| 14 | # Call WithApacheSession's exec, then put comp_root back | ||
| 15 | # to what it was when the current request or subrequest was made | ||
| 16 | # | ||
| 17 | sub exec | ||
| 18 | { | ||
| 19 | 0 | ▶ | my $self = shift; |
|
Subroutine
exec: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 20 | 0 | my $return_exec = $self->SUPER::exec(@_); | |
| 21 | 0 | $self->reset_comp_root; | |
| 22 | 0 | return $return_exec; | |
| 23 | } | ||
| 24 | |||
| 25 | # | ||
| 26 | # Simply pass the buck | ||
| 27 | # | ||
| 28 | sub fetch_comp | ||
| 29 | { | ||
| 30 | 0 | ▶ | my $return_exec = MasonX::Request::ExtendedCompRoot::fetch_comp(@_); |
|
Subroutine
fetch_comp: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | } | ||
| 32 | |||
| 33 | 1 | 1; | |
| 34 | |||
| 35 | |||
| 36 | __END__ | ||