| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class AnnotatedSchemaConveyor extends CompositedSchemaConveyor |
||
| 11 | { |
||
| 12 | private bool $isAutoloadRegistered = false; |
||
| 13 | |||
| 14 | 9 | public function getGenerators(): array |
|
| 15 | { |
||
| 16 | 9 | if (!$this->isAutoloadRegistered) { |
|
| 17 | /** |
||
| 18 | * autoload annotations |
||
| 19 | * |
||
| 20 | * @psalm-suppress DeprecatedMethod |
||
| 21 | */ |
||
| 22 | 9 | AnnotationRegistry::registerLoader('class_exists'); |
|
|
|
|||
| 23 | 9 | $this->isAutoloadRegistered = true; |
|
| 24 | } |
||
| 25 | |||
| 26 | 9 | return parent::getGenerators(); |
|
| 27 | } |
||
| 28 | 8 | protected function getMetadataReader(): AnnotationReader |
|
| 31 | } |
||
| 32 | } |
||
| 33 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.