2017-04-04 14:44:59 +08:00

18 lines
614 B
PHP

<?php
require_once __DIR__ . '/vendor/autoload.php';
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Silex\Application;
$app = new Silex\Application();
$app->PUT('/v2 *_/ ' \" =end -- \\r\\n \\n \\r/fake', function(Application $app, Request $request) {
$test code inject */ &#39; &quot; &#x3D;end __ \r\n \n \r = $request->get('test code inject */ &#39; &quot; &#x3D;end __ \r\n \n \r');
return new Response('How about implementing testCodeInject */ &#39; &quot; &#x3D;end \r\n \n \r as a PUT method ?');
});
$app->run();