Comprehensive Documentation on context Parameter?
#180
Closed
Kenneth-Sills
started this conversation in
General
Replies: 1 comment 1 reply
-
|
It looks like the body is being stripped in our generated docs. You can always look at the stubs from the downloaded artifact. Or check these: https://github.com/JetBrains/phpstorm-stubs/blob/master/relay/Relay.php |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Looking through the documentation, I wasn't able to locate a list of what options are allowed in the
contextarray parameter ofRelay::__construct(...).The connections page has the big ones, but no enumeration.
Then I checked the API documentation, and while
Relay::(p)connect(...)says to refer toRelay::__construct(...)"for context options", that method documentation just providesarrayas the type with no further explanation.In particular, I was hoping to see if there's a
contextkey for assigning a persistent ID.I tried a few options -
persistent(from theRedis::__construct(...)parameter name) orpersistent_id(from theRelay::connect(...)parameter name) - but while Relay doesn't seem to throw a warning on unrecognizedcontextparameters, none of those affected the return ofRelay::getPersistentId().I searched for
contextacross thecachewerkgroup, as well as discord, so hopefully I'm not wasting your time and it's somewhere I just missed...Beta Was this translation helpful? Give feedback.
All reactions