Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function getServiceConfig()
 {
     return array('factories' => array('SxBootstrap\\Service\\BootstrapFilter' => function ($serviceManager) {
         $config = $serviceManager->get('Config');
         $bootstrapConfig = $config['twitter_bootstrap'];
         $BootstrapFilter = new BootstrapFilter($bootstrapConfig);
         return $BootstrapFilter;
     }, 'SxBootstrap\\Service\\BootstrapResolver' => function ($serviceManager) {
         $config = $serviceManager->get('Config');
         $bootstrapConfig = $config['twitter_bootstrap'];
         $assetFilterManager = new BootstrapResolver($bootstrapConfig);
         return $assetFilterManager;
     }, 'formElementErrors' => function ($serviceManager) {
         $fee = new \Zend\Form\View\Helper\FormElementErrors();
         $fee->setMessageCloseString('</li></ul>');
         $fee->setMessageOpenFormat('<ul%s><li>');
         $fee->setMessageSeparatorString('</li><li>');
         $fee->setAttributes(array('class' => 'help-inline'));
         return $fee;
     }));
 }