-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Store documentation file on a configurable directory #152
base: master
Are you sure you want to change the base?
feat: Store documentation file on a configurable directory #152
Conversation
@hans-thomas I've updated task description, please add required changes accordingly the new task description (please feel free to open few PRs if you can divide task for small subtasks without breaking the package work) |
@hans-thomas please do not use autoclosing issues as we need to test task before closing |
The `production_path` key renamed to `base_file_name` for both local and storage drivers;
Quality Gate passedIssues Measures |
throw new MissedProductionFilePathException(); | ||
} | ||
} | ||
|
||
public function saveData(): void | ||
{ | ||
$this->disk->put($this->prodFilePath, json_encode($this->getTmpData())); | ||
$this->disk->put($this->baseFileName, json_encode($this->getTmpData())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Storage driver should create storage directory only for non Cloud drivers (on documentation saving)
I believe the Filesystem
class will take care of it.
Hi @DenTray, would you please review this PR? |
Hi, it adds the ability to store the generated documentation file in a configurable directory.
TODO list:
directory
with the default valuedocumentations
production_path
config for Local and Storage drivers should be renamed tobase_file_name
with the default valuedocumentation
(without.json
extension).json
extension