for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mouf\Mvc\Splash\Fixtures;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\Response\JsonResponse;
class TestController2
{
private $param = 42;
private $param2 = 52;
/**
* @URL /url/{$this->param}/foo/{$this->param2}
*/
public function action1() {
}
* @Action
public function actionAnnotation() {
* @Title Main page
* @Get
* @Post
* @Put
* @Delete
public function index() {
* @URL /foo/{var}/bar
public function completeTest($id, ServerRequestInterface $request, $var, $opt = 42) {
return new JsonResponse([
'id' => $id,
'id2' => $request->getQueryParams()['id'],
'var' => $var,
'opt' => $opt
]);