| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 10 | public function indexAction() |
||
| 11 | { |
||
| 12 | if (!$this->get('tahoe.multi_tenancy.tenant_resolver')->needStartScreen()) { |
||
| 13 | return $this->redirect($this->generateUrl('dashboard_index')); |
||
| 14 | } |
||
| 15 | // if we need start screen, we display it |
||
| 16 | $tenantUsers = $this->container->get('tahoe.multi_tenancy.tenant_user_repository')->findBy( |
||
| 17 | array( |
||
| 18 | 'user' => $this->getUser() |
||
| 19 | ) |
||
| 20 | ); |
||
| 21 | |||
| 22 | return $this->render( |
||
| 23 | 'TahoeMultiTenancyBundle:Start:index.html.twig', |
||
| 24 | array( |
||
| 25 | 'tenantUsers' => $tenantUsers |
||
| 26 | ) |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |