Guest User

Zfcuser.global.php

a guest
Nov 24th, 2013
86
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $settings = array(
  3.     'zend_db_adapter' => 'Zend\Db\Adapter\Adapter',
  4.     'user_entity_class' => 'ZfcUser\Entity\User',
  5.     'enable_registration' => true,
  6.     'enable_username' => true,
  7.     'auth_adapters' => array( 100 => 'ZfcUser\Authentication\Adapter\Db' ),
  8.     'enable_display_name' => true,
  9.     'auth_identity_fields' => array('email', 'username'),
  10.     'login_form_timeout' => 300,
  11.     'user_form_timeout' => 600,
  12.     'login_after_registration' => true,
  13.     'use_registration_form_captcha' => false,
  14.     'use_redirect_parameter_if_present' => true,    
  15.     'table_name' => 'user',
  16. );
  17.  
  18. return array(
  19.     'zfcuser' => $settings,
  20.     'service_manager' => array(
  21.         'aliases' => array(
  22.             'zfcuser_zend_db_adapter' => (isset($settings['zend_db_adapter'])) ? $settings['zend_db_adapter']: 'Zend\Db\Adapter\Adapter',
  23.         ),
  24.     ),
  25. );
RAW Paste Data