| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 32 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
| 33 | { |
||
| 34 | /* @var $serviceLocator \Zend\ServiceManager\AbstractPluginManager |
||
| 35 | * @var $jobsRepository \Jobs\Repository\Job |
||
| 36 | */ |
||
| 37 | $services = $serviceLocator->getServiceLocator(); |
||
| 38 | $repositories = $services->get('repositories'); |
||
| 39 | $jobsRepository = $repositories->get('Jobs'); |
||
| 40 | $organizations = $jobsRepository->findActiveOrganizations(); |
||
| 41 | $select = new OrganizationSelect(); |
||
| 42 | |||
| 43 | $select->setSelectableOrganizations($organizations); |
||
| 44 | |||
| 45 | return $select; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |