| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 9 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Anomaly\UsersModule; |
||
| 24 | public function getFunctions() |
||
| 25 | { |
||
| 26 | return [ |
||
| 27 | new \Twig_SimpleFunction( |
||
| 28 | 'user', |
||
| 29 | function ($identifier = null) { |
||
| 30 | return (new Decorator())->decorate($this->dispatch(new GetUser($identifier))); |
||
| 31 | } |
||
| 32 | ), |
||
| 33 | new \Twig_SimpleFunction( |
||
| 34 | 'role', |
||
| 35 | function ($identifier) { |
||
| 36 | return (new Decorator())->decorate($this->dispatch(new GetRole($identifier))); |
||
| 37 | } |
||
| 38 | ) |
||
| 39 | ]; |
||
| 40 | } |
||
| 41 | } |
||
| 42 |