Copy the regexes to the public interface#436
Conversation
|
@nickvergessen, thanks for your PR! By analyzing the annotation information on this pull request, we identified @LukasReschke, @DeepDiver1975 and @tanghus to be potential reviewers |
|
👍 |
|
Wouldn't it be better to have an |
|
We have a method I would also only consider the name public api, not the actual value? |
Could this be done by an abstract constant? Is this possible? |
| // Android Chrome user agent: https://developers.google.com/chrome/mobile/docs/user-agent | ||
| const USER_AGENT_ANDROID_MOBILE_CHROME = '#Android.*Chrome/[.0-9]*#'; | ||
| const USER_AGENT_FREEBOX = '#^Mozilla/5\.0$#'; | ||
| const REGEX_LOCALHOST = '/^(127\.0\.0\.1|localhost)$/'; |
There was a problem hiding this comment.
I know this is unrelated to your PR, but what about IPv6?
No, according to http://php.net/manual/en/language.oop5.interfaces.php:
|
|
I mean we could also add methods that then use |
|
👍 |
…tcloud#436) After the previous PR(nextcloud#430) which added stopping application containers feature when shutting down, as @andrey18106 correctly noted during our 1:1 conversation: we cannot rely on the application inside the docker container to be ready to process the request at the moment the docker container is turned on. This PR introduces handling of it by checking health-check and heartbeat. Signed-off-by: bigcat88 <bigcat88@icloud.com>
No description provided.