src/MetadataDriver/LazyLoadingDriver.php 1 location
|
@@ 108-111 (lines=4) @@
|
| 105 |
|
$id = $this->getRealDriverId(); |
| 106 |
|
$metadataDriver = $container->get($id); |
| 107 |
|
|
| 108 |
|
if (!$metadataDriver instanceof DriverInterface) { |
| 109 |
|
$errMsg = sprintf('Metadata driver not implement %s', DriverInterface::class); |
| 110 |
|
throw new Exception\RuntimeException($errMsg); |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
return $metadataDriver->loadMetadataForClass($class); |
| 114 |
|
} |
src/MetadataDriver/MetadataDriverAbstractFactory.php 1 location
|
@@ 72-75 (lines=4) @@
|
| 69 |
|
$options |
| 70 |
|
); |
| 71 |
|
|
| 72 |
|
if (!$metadataDriver instanceof DriverInterface) { |
| 73 |
|
$errMsg = sprintf('Metadata driver not implement %s', DriverInterface::class); |
| 74 |
|
throw new Exception\RuntimeException($errMsg); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
return $metadataDriver; |
| 78 |
|
} |