fromContext extracts the frankenPHPContext from a context.
(ctx context.Context)
| 49 | |
| 50 | // fromContext extracts the frankenPHPContext from a context. |
| 51 | func fromContext(ctx context.Context) (fctx *frankenPHPContext, ok bool) { |
| 52 | fctx, ok = ctx.Value(contextKey).(*frankenPHPContext) |
| 53 | return |
| 54 | } |
| 55 | |
| 56 | func newFrankenPHPContext() *frankenPHPContext { |
| 57 | return &frankenPHPContext{ |
no outgoing calls
no test coverage detected