src/annotation/Inject.php 1 location
|
@@ 92-100 (lines=9) @@
|
| 89 |
|
* |
| 90 |
|
* @return string Full class name |
| 91 |
|
*/ |
| 92 |
|
protected function buildFullClassName($className, $namespace) |
| 93 |
|
{ |
| 94 |
|
// Check if we need to append namespace to dependency |
| 95 |
|
if ($className !== null && strpos($className, '\\') === false) { |
| 96 |
|
return $namespace . '\\' . $className; |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
return $className; |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
/** |
| 103 |
|
* Check if @Inject violates inheritance. |
src/annotation/InjectArgument.php 1 location
|
@@ 59-67 (lines=9) @@
|
| 56 |
|
* |
| 57 |
|
* @return string Full class name |
| 58 |
|
*/ |
| 59 |
|
protected function buildFullClassName($className, $namespace) |
| 60 |
|
{ |
| 61 |
|
// Check if we need to append namespace to dependency |
| 62 |
|
if ($className !== null && strpos($className, '\\') === false) { |
| 63 |
|
return $namespace . '\\' . $className; |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
return $className; |
| 67 |
|
} |
| 68 |
|
} |
| 69 |
|
|