Exemplo n.º 1
0
    return $controller;
}, 'Application\\Controller\\Customer' => function (ControllerManager $cm) {
    $controller = new CustomerController();
    $controller->setCustomerService($cm->getServiceLocator()->get('Application\\Service\\Customer'));
    return $controller;
}, 'Application\\Controller\\Document' => function (ControllerManager $cm) {
    $controller = new DocumentController();
    $controller->setCustomerService($cm->getServiceLocator()->get('Application\\Service\\Customer'));
    $controller->setCompanyService($cm->getServiceLocator()->get('Application\\Service\\Company'));
    $controller->setSettingsService($cm->getServiceLocator()->get('Application\\Service\\Settings'));
    $controller->setInvoiceService($cm->getServiceLocator()->get('Application\\Service\\Invoice'));
    $controller->setCreditInvoiceService($cm->getServiceLocator()->get('Application\\Service\\CreditInvoice'));
    return $controller;
}, 'Application\\Controller\\Index' => function (ControllerManager $cm) {
    $controller = new IndexController();
    $controller->setLanguageService($cm->getServiceLocator()->get('Application\\Service\\Language'));
    return $controller;
}, 'Application\\Controller\\Settings' => function (ControllerManager $cm) {
    $controller = new SettingsController();
    $controller->setSettingsService($cm->getServiceLocator()->get('Application\\Service\\Settings'));
    return $controller;
}, 'Application\\Controller\\Statistics' => function (ControllerManager $cm) {
    $controller = new StatisticsController();
    $controller->setStatisticsService($cm->getServiceLocator()->get('Application\\Service\\Statistics'));
    return $controller;
}, 'Application\\Controller\\Supplier' => function (ControllerManager $cm) {
    $controller = new SupplierController();
    $controller->setSupplierService($cm->getServiceLocator()->get('Application\\Service\\Supplier'));
    return $controller;
}, 'Application\\Controller\\Template' => function (ControllerManager $cm) {
    $controller = new TemplateController();