forked from loafle/openapi-generator-original
19 lines
556 B
PHP
19 lines
556 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('/fake', function(Application $app, Request $request) {
|
|
|
|
$test code inject */ ' " =end = $request->get('test code inject */ ' " =end');
|
|
return new Response('How about implementing testCodeInject */ ' " =end as a PUT method ?');
|
|
});
|
|
|
|
|
|
$app->run();
|