⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
shopware
/
vendor
/
zircote
/
swagger-php
/
src
/
View File Name :
functions.php
<?php declare(strict_types=1); /** * @license Apache 2.0 */ namespace OpenApi; use OpenApi\Annotations\OpenApi; use Symfony\Component\Finder\Finder; if (defined('OpenApi\\UNDEFINED') === false) { /* * Special value to differentiate between null and undefined. * * @deprecated use Generator::UNDEFINED */ define('OpenApi\\UNDEFINED', Generator::UNDEFINED); /* * Special value to differentiate between null and undefined. * * @deprecated use Generator::UNDEFINED */ define('OpenApi\\Annotations\\UNDEFINED', Generator::UNDEFINED); /* * Special value to differentiate between null and undefined. * * @deprecated use Generator::UNDEFINED */ define('OpenApi\\Processors\\UNDEFINED', Generator::UNDEFINED); } if (!function_exists('OpenApi\\scan')) { /** * Scan the filesystem for OpenAPI annotations and build openapi-documentation. * * @param array|Finder|string $directory The directory(s) or filename(s) * @param array $options * exclude: string|array $exclude The directory(s) or filename(s) to exclude (as absolute or relative paths) * pattern: string $pattern File pattern(s) to scan (default: *.php) * analyser: defaults to StaticAnalyser * analysis: defaults to a new Analysis * processors: defaults to the registered processors in Analysis * * @return OpenApi * * @deprecated use \OpenApi\Generator instead */ function scan($directory, $options = []) { $exclude = array_key_exists('exclude', $options) ? $options['exclude'] : null; $pattern = array_key_exists('pattern', $options) ? $options['pattern'] : null; return Generator::scan(Util::finder($directory, $exclude, $pattern), $options); } }