Mercurial > pub > Impl
comparison lib/IMPL/Config/ReferenceDescriptor.pm @ 417:3ed0c58e9da3 ref20150831
working on di container, tests
author | cin |
---|---|
date | Mon, 02 Nov 2015 01:56:53 +0300 |
parents | cc2cf8c0edc2 |
children | 7798345304bc |
comparison
equal
deleted
inserted
replaced
416:cc2cf8c0edc2 | 417:3ed0c58e9da3 |
---|---|
32 } | 32 } |
33 | 33 |
34 sub Activate { | 34 sub Activate { |
35 my ( $this, $context ) = @_; | 35 my ( $this, $context ) = @_; |
36 | 36 |
37 $this->EnterScope( $this->_name, $this->services ); | 37 $context->EnterScope( $this->_name, $this->services ); |
38 | 38 |
39 my $ref = $this->reference; | 39 my $ref = $this->reference; |
40 my %opts; | 40 my %opts; |
41 $opts{default} = $this->default | 41 $opts{default} = $this->default |
42 if $this->optional; | 42 if $this->optional; |
49 } | 49 } |
50 else { | 50 else { |
51 return $context->Resolve( $ref, %opts ); | 51 return $context->Resolve( $ref, %opts ); |
52 } | 52 } |
53 | 53 |
54 $this->LeaveScope(); | 54 $context->LeaveScope(); |
55 } | 55 } |
56 | 56 |
57 1; | 57 1; |
58 | 58 |
59 __END__ | 59 __END__ |