Final Class Yiisoft\HttpMiddleware\HttpCache\ETagGenerator\CallableETagGenerator
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
Generates a string ETag value using a callable function.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| generate() | Yiisoft\ |
Method Details
| public mixed __construct ( callable $callable ) | ||
| $callable | callable |
A callable function that takes a string seed and returns a string ETag value. |
public function __construct(callable $callable)
{
$this->callable = $callable;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.