@@ 220-227 (lines=8) @@ | ||
217 | * |
|
218 | * @return $this |
|
219 | */ |
|
220 | public function asNewInstanceOf($className) |
|
221 | { |
|
222 | $endPoint = &$this->_getEndPoint(); |
|
223 | $endPoint['lookupType'] = self::TYPE_INSTANCE; |
|
224 | $endPoint['className'] = $className; |
|
225 | ||
226 | return $this; |
|
227 | } |
|
228 | ||
229 | /** |
|
230 | * Specify the previously registered item as a shared instance of $className. |
|
@@ 238-245 (lines=8) @@ | ||
235 | * |
|
236 | * @return $this |
|
237 | */ |
|
238 | public function asSharedInstanceOf($className) |
|
239 | { |
|
240 | $endPoint = &$this->_getEndPoint(); |
|
241 | $endPoint['lookupType'] = self::TYPE_SHARED; |
|
242 | $endPoint['className'] = $className; |
|
243 | ||
244 | return $this; |
|
245 | } |
|
246 | ||
247 | /** |
|
248 | * Specify a list of injected dependencies for the previously registered item. |