⚝
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
/
docs
/
View File Name :
swagger-php-internals.md
# How swagger-php works under the hood ## Flow - Finder crawls the filesystem - The (Static)Analyser reads the files and builds an Analysis object. - The Analysis object is then processed by the Processors. - The Analysis/Annotations are validated to notify the user of any known issues. - The OpenApi annotation then contains all annotations and generates the openapi.json ## Annotation Context The annotations contain metadata stored in a Context object which: - Contains the data thats needed by the processors to infer values. - When validation detects an error it can print the location (file and line number) of the offending annotation. ## Analysis Contains all detected annotations and other relevant meta data. It uses a SplObjectStorage to store the annotations, which is like an array but prevents duplicate entries. # Documentation Documentation is generated with [vuepress](https://vuepress.vuejs.org/) ```bash npm -g install vuepress cd docs vuepress dev ```