Changeset 1179
- Timestamp:
- 12/23/07 00:11:01 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/ioc/stubClassBinding.php
r1177 r1179 147 147 * This method will at first look for an existing 148 148 * instance in the scope and then create the instance 149 * using the create() method.149 * using the injection provider. 150 150 * 151 151 * @return object 152 * @see create()153 152 */ 154 153 public function getInstance() … … 163 162 164 163 if (null === $this->scope) { 165 if ($this->impl->hasAnnotation('Singleton') ) {164 if ($this->impl->hasAnnotation('Singleton') === true) { 166 165 $this->scope = stubBindingScopes::$SINGLETON; 167 166 }
