Open froschdesign opened 10 months ago
I assume, yes. That would work.
At least all options are listed. How do you detect the options class? There are repositories with more than one option class, i.e.:
https://github.com/laminas/laminas-cache-storage-adapter-redis/blob/2.8.x/src/RedisClusterOptions.php https://github.com/laminas/laminas-cache-storage-adapter-redis/blob/2.8.x/src/RedisOptions.php
How do you detect the options class?
At the moment by hand, because the current goal is that the writer does not have to copy and paste the options. But each option must be listed in the documentation. (The goal is not to automate to the entire process!)
There are repositories with more than one option class, i.e.:
Good to know. Thanks for the hint!
To document the adapter options, I have tried to extract the properties of the option class via script.
Here is a first result:
cache_dir
string
The cache directorynull
clear_stat_cache
bool
true
dir_level
int
1
dir_permission
false\|int
0700
file_locking
bool
true
file_permission
false\|int
0600
key_pattern
string
/^[a-z0-9_\+\-]*$/Di
namespace_separator
string
-
no_atime
bool
true
no_ctime
bool
true
umask
false\|int
false
suffix
string
dat
tag_suffix
string
tag
https://github.com/laminas/laminas-cache-storage-adapter-filesystem/blob/d78283f47a7d0fd3968c63836ee2805b53bff06f/src/FilesystemOptions.php#L29-L102
@boesing The DocBlocks might need to be extended, but would this be a viable solution? Would all options then be included?