return $service; }, 'Application\\Service\\Bank' => function (ServiceManager $sm) { $service = new BankService(); $service->setInvoiceService($sm->get('Application\\Service\\Invoice')); return $service; }, 'Application\\Service\\Customer' => function (ServiceManager $sm) { $service = new CustomerService(); return $service; }, 'Application\\Service\\Invoice' => function (ServiceManager $sm) { $service = new InvoiceService(); $service->setCustomerService($sm->get('Application\\Service\\Customer')); $service->setSettingsService($sm->get('Application\\Service\\Settings')); $service->setArticleService($sm->get('Application\\Service\\Article')); $service->setCompanyService($sm->get('Application\\Service\\Company')); $service->setMailService($sm->get('Application\\Service\\Mail')); $service->setSupplierService($sm->get('Application\\Service\\Supplier')); return $service; }, 'Application\\Service\\CreditInvoice' => function (ServiceManager $sm) { $service = new CreditInvoiceService(); return $service; }, 'Application\\Service\\Company' => function (ServiceManager $sm) { $service = new CompanyService(); return $service; }, 'Application\\Service\\Language' => function (ServiceManager $sm) { $service = new LanguageService(); $service->setTranslator($sm->get('Translator')); return $service; }, 'Application\\Service\\Mail' => function (ServiceManager $sm) { $service = new MailService(); return $service; }, 'Application\\Service\\Settings' => function (ServiceManager $sm) {