Skip to content

Commit 1a4a659

Browse files
committed
Ignore OpenAPI annotations so Cycle ORM works
1 parent f791606 commit 1a4a659

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

public/index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use Doctrine\Common\Annotations\AnnotationReader;
34
use Psr\Container\ContainerInterface;
45
use Yiisoft\Composer\Config\Builder;
56
use Yiisoft\Di\Container;
@@ -21,6 +22,9 @@
2122

2223
require_once dirname(__DIR__) . '/vendor/autoload.php';
2324

25+
// Ignore OpenAPI annotations so Cycle ORM works.
26+
AnnotationReader::addGlobalIgnoredNamespace("OA");
27+
2428
Builder::rebuild();
2529

2630
$startTime = microtime(true);

0 commit comments

Comments
 (0)