src/EntryNameResolverChainFactory.php 1 location
|
@@ 58-61 (lines=4) @@
|
55 |
|
$r = new ReflectionClass($className); |
56 |
|
$chain = $r->newInstance(); |
57 |
|
|
58 |
|
if (!$chain instanceof static::$defaultTargetClassName) { |
59 |
|
$errMsg = sprintf('EntryNameResolverChain not implements: %s', static::$defaultTargetClassName); |
60 |
|
throw new Exception\RuntimeException($errMsg); |
61 |
|
} |
62 |
|
|
63 |
|
foreach ($resolvers as $entryNameResolverConfig) { |
64 |
|
if (!is_array($entryNameResolverConfig)) { |
src/ResolverByModuleContextMapFactory.php 1 location
|
@@ 65-68 (lines=4) @@
|
62 |
|
$r = new ReflectionClass($className); |
63 |
|
$resolverByModuleContextMap = $r->newInstance($moduleOptionsPluginManager); |
64 |
|
|
65 |
|
if (!$resolverByModuleContextMap instanceof static::$defaultTargetClassName) { |
66 |
|
$errMsg = sprintf('ResolverByModuleContextMap not implements: %s', static::$defaultTargetClassName); |
67 |
|
throw new Exception\RuntimeException($errMsg); |
68 |
|
} |
69 |
|
|
70 |
|
$resolverByModuleContextMap->setContextMap($contextMap); |
71 |
|
|