SHARE
TWEET

Untitled

unnamed1233 Jul 26th, 2019 (edited) 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?
  2. require (__DIR__ . '/../vendor/autoload.php');
  3. use \Psr\Http\Message\ServerRequestInterface as Request;
  4. use \Psr\Http\Message\ResponseInterface as Response;
  5.  
  6. $app = new \Slim\App(new \Slim\Container(require '../config.php'));
  7.  
  8. $s = new Classes\Test(); // ERROR
  9.  
  10. $app->get('/', function (Request $request, Response $response) {
  11.     $response->getBody()->write("123");
  12.     return $response;
  13. });
  14.  
  15.  
  16. $app->run();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top