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
|
@@ 96-104 (lines=9) @@
|
| 93 |
|
* |
| 94 |
|
* @return string Full class name |
| 95 |
|
*/ |
| 96 |
|
protected function buildFullClassName($className, $namespace) |
| 97 |
|
{ |
| 98 |
|
// Check if we need to append namespace to dependency |
| 99 |
|
if ($className !== null && strpos($className, '\\') === false) { |
| 100 |
|
return $namespace . '\\' . $className; |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
return $className; |
| 104 |
|
} |
| 105 |
|
} |
| 106 |
|
|