| 1 | package OpenID::Lite::RelyingParty::Discover::Method::Base; | ||||||||||
| 2 | |||||||||||
| 3 | 4 | ▶ | use Any::Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 4 | with 'OpenID::Lite::Role::Discoverer'; | |||||||||
| 5 | 4 | with 'OpenID::Lite::Role::ErrorHandler'; | |||||||||
| 6 | 4 | with 'OpenID::Lite::Role::AgentHandler'; | |||||||||
| 7 | |||||||||||
| 8 | 4 | has '_fetcher' => ( | |||||||||
| 9 | is => 'ro', | ||||||||||
| 10 | lazy_build => 1, | ||||||||||
| 11 | ); | ||||||||||
| 12 | |||||||||||
| 13 | 4 | has '_parser' => ( | |||||||||
| 14 | is => 'ro', | ||||||||||
| 15 | lazy_build => 1, | ||||||||||
| 16 | ); | ||||||||||
| 17 | |||||||||||
| 18 | 15 | ▶ | sub discover { | ||||||||
|
Subroutine
discover: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 19 | 15 | my ( $self, $identifier ) = @_; | |||||||||
| 20 | 15 | ▶ | my $result = $self->_fetcher->fetch( $identifier->as_string ) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | or return $self->ERROR( $self->_fetcher->errstr ); | ||||||||||
| 22 | 10 | ▶ | my $services = $self->_parser->parse( $result ) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | or return $self->ERROR( $self->_parser->errstr ); | ||||||||||
| 24 | 8 | return $services; | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 0 | ▶ | sub _build__fetcher { | ||||||||
|
Subroutine
_build__fetcher: not called CC=1 SCAR=6.9
| |||||||||||
| 28 | 0 | die "Abstract Method"; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | |||||||||||
| 32 | 0 | ▶ | sub _build__parser { | ||||||||
|
Subroutine
_build__parser: not called CC=1 SCAR=6.9
| |||||||||||
| 33 | 0 | die "Abstract Method"; | |||||||||
| 34 | } | ||||||||||
| 35 | |||||||||||
| 36 | 4 | ▶ | no Any::Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 37 | 4 | __PACKAGE__->meta->make_immutable; | |||||||||
| 38 | 4 | 1; | |||||||||
| 39 | |||||||||||
| 40 | |||||||||||