*/ public static function scan ( iterable $sources, array $options = ) : OpenApi * logger: null|\Psr\Log\LoggerInterface If not set logging will use \OpenApi\Logger as before. * processors: null|array Defaults to `Analysis::processors()`. * analysis: null|Analysis Defaults to a new `Analysis`. * analyser: null|AnalyserInterface Defaults to a new `ReflectionAnalyser` supporting both docblocks and attributes. * iterable $sources PHP source files to scan. * Static wrapper around `Generator::generate()`. ![]() The minimum code required, using the generate() method, looks quite similar to the old scan() code: Support for Symfony Finder, \SplInfo and file/directory names (`string) as source.Static configuration is deprecated and can be removed at some point without code changes.The get/set methods allow for using type hints. ![]()
0 Comments
Leave a Reply. |