src/ResolverByClassName.php 1 location
|
@@ 118-124 (lines=7) @@
|
| 115 |
|
$contextClass = get_class($contextClass); |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
if (!is_string($contextClass)) { |
| 119 |
|
$errMsg = sprintf( |
| 120 |
|
'Context of type %s is invalid; Context not string.', |
| 121 |
|
(is_object($context) ? get_class($context) : gettype($context)) |
| 122 |
|
); |
| 123 |
|
throw new Exception\InvalidContextException($errMsg); |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
return $contextClass; |
| 127 |
|
} |
src/ResolverByModuleContextMap.php 1 location
|
@@ 50-56 (lines=7) @@
|
| 47 |
|
$className = get_class($context); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
if (!is_string($className)) { |
| 51 |
|
$errMsg = sprintf( |
| 52 |
|
'Context of type %s is invalid; Context not string.', |
| 53 |
|
(is_object($context) ? get_class($context) : gettype($context)) |
| 54 |
|
); |
| 55 |
|
throw new Exception\InvalidContextException($errMsg); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
$contextKey = null; |
| 59 |
|
$moduleOptionsPluginManager = $this->getModuleOptionsPluginManager(); |