PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.8.1
GiveWP – Donation Plugin and Fundraising Platform v4.16.8.1
4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 All 254 releases
give / src / Framework / Http / Response / functions.php

functions.php in GiveWP – Donation Plugin and Fundraising Platform 4.16.8.1, at src/Framework/Http/Response/functions.php

27 lines 523 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\Framework\Http\Response;
4
5
6 /**
7 * Return a new response from the application.
8 *
9 * @since 2.18.0
10 *
11 * @param string $content
12 * @param int $status
13 * @param array $headers
14 * @return Response|ResponseFactory
15 */
16 function response($content = '', $status = 200, array $headers = [])
17 {
18 /** @var ResponseFactory $factory */
19 $factory = give(ResponseFactory::class);
20
21 if (func_num_args() === 0) {
22 return $factory;
23 }
24
25 return $factory->make($content, $status, $headers);
26 }
27