public function getServiceConfig() { return ['factories' => array('Zend\\Log' => function ($sm) { $log = new Logger(); $stream_writer = new Stream('./data/log/application.log'); $log->addWriter($stream_writer); $log->info('Logging started...'); return $log; }, 'UserModel' => function (\Zend\ServiceManager\ServiceLocatorInterface $sl) { $instance = new \Application\Model\User(); $instance->setServiceLocator($sl); $instance->setRelation('addressid', 'address'); return $instance; }, 'FeedbackModel' => function (\Zend\ServiceManager\ServiceLocatorInterface $sl) { $instance = new \Netsensia\Model\Feedback(); $instance->setServiceLocator($sl); return $instance; }, 'AddressModel' => function (\Zend\ServiceManager\ServiceLocatorInterface $sl) { $instance = new \Netsensia\Model\Address(); $instance->setServiceLocator($sl); return $instance; })]; }