1 | <?php |
||
10 | trait FormTrait |
||
11 | { |
||
12 | use StreamTrait; |
||
13 | |||
14 | private $autoInsert = false; |
||
15 | |||
16 | /** |
||
17 | * Configure if autoinsert or not the inputs automatically. |
||
18 | * |
||
19 | * @param bool $autoInsert |
||
20 | * |
||
21 | * @return self |
||
22 | */ |
||
23 | public function autoInsert($autoInsert = true) |
||
29 | |||
30 | /** |
||
31 | * Insert content into all POST forms. |
||
32 | * |
||
33 | * @param ResponseInterface $response |
||
34 | * @param callable $replace |
||
35 | * |
||
36 | * @return ResponseInterface |
||
37 | */ |
||
38 | private function insertIntoPostForms(ResponseInterface $response, callable $replace) |
||
52 | } |
||
53 |