1 | <?php |
||
26 | class IndexController extends Controller |
||
27 | { |
||
28 | 1 | public function indexAction() |
|
32 | |||
33 | /** |
||
34 | * Check basic connectivity. Returns a timestamp. |
||
35 | * @SWG\Get( |
||
36 | * path="/ping", |
||
37 | * tags={"status"}, |
||
38 | * @SWG\Response(response="200", description="Sends a response with the time") |
||
39 | * ) |
||
40 | * |
||
41 | */ |
||
42 | public function pingAction() |
||
47 | |||
48 | public function apiAction() |
||
57 | |||
58 | |||
59 | |||
60 | public function fakeClientCallbackAction() |
||
65 | } |
||
66 |
An exit expression should only be used in rare cases. For example, if you write a short command line script.
In most cases however, using an
exit
expression makes the code untestable and often causes incompatibilities with other libraries. Thus, unless you are absolutely sure it is required here, we recommend to refactor your code to avoid its usage.