We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0cff71 commit 46d5d47Copy full SHA for 46d5d47
1 file changed
Middleware/Jsonp.php
@@ -2,13 +2,22 @@
2
/**
3
* JSONP Middleware Class for the Slim Framework
4
*
5
- * Simple class to wrap the response of the application in an JSONP callback function.
6
- * The class is triggered when a get parameter of callback is found
7
- *
8
* @author Tom van Oorschot <tomvanoorschot@gmail.com>
9
* @since 17-12-2012
+ *
+ * Simple class to wrap the response of the application in a JSONP callback function.
+ * The class is triggered when a get parameter of callback is found
10
11
+ * Usage
12
+ * ====
13
14
+ * $app = new \Slim\Slim();
15
+ * $app->add(new \Slim\Extras\Middleware\JSONPMiddleware());
16
17
*/
18
19
+namespace Slim\Extras\Middleware;
20
+
21
class JSONPMiddleware extends \Slim\Middleware
22
{
23
public function call()
0 commit comments