Skip to content
Browse files

Added doc on how to use and uses correct namespace

  • Loading branch information...
1 parent f0cff71 commit 46d5d47c4a2fdc306b7a840121f2f443e75ab6c1 @tomvo tomvo committed Dec 17, 2012
Showing with 12 additions and 3 deletions.
  1. +12 −3 Middleware/Jsonp.php
View
15 Middleware/Jsonp.php
@@ -2,13 +2,22 @@
/**
* JSONP Middleware Class for the Slim Framework
*
- * Simple class to wrap the response of the application in an JSONP callback function.
- * The class is triggered when a get parameter of callback is found
- *
* @author Tom van Oorschot <tomvanoorschot@gmail.com>
* @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
+ *
+ * Usage
+ * ====
+ *
+ * $app = new \Slim\Slim();
+ * $app->add(new \Slim\Extras\Middleware\JSONPMiddleware());
+ *
*/
+namespace Slim\Extras\Middleware;
+
class JSONPMiddleware extends \Slim\Middleware
{
public function call()

0 comments on commit 46d5d47

Please sign in to comment.
Something went wrong with that request. Please try again.