blob: cabcae042b1ce8172303d8392d9a57e74103b239 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
namespace foo;
use Symfony\Component\HttpFoundation\Response;
class controller
{
/**
* Handle method
*
* @return null
*/
public function handle($optional = 'foo')
{
return new Response('Test', 200);
}
public function handle2($foo = 'foo', $very_optional = 0)
{
return new Response('Test2', 200);
}
public function handle_fail($no_default)
{
return new Response('Test_fail', 200);
}
public function __invoke()
{
$this->handle();
}
}
|