Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | function authResource($uri, $controller) |
||
27 | { |
||
28 | $this->app->post($uri.'/register', $controller.'@register'); |
||
29 | $this->app->post($uri.'/login', $controller.'@login'); |
||
30 | $this->app->post($uri.'/logout', $controller.'@logout'); |
||
31 | $this->app->post($uri.'/refresh', $controller.'@refresh'); |
||
32 | $this->app->post($uri.'/me', $controller.'@me'); |
||
33 | |||
37 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.