<?php
/**
 * Local Configuration Override
 *
 * This configuration override file is for overriding environment-specific and
 * security-sensitive configuration information. Copy this file without the
 * .dist extension at the end and populate values as needed.
 *
 * @NOTE: This file is ignored from Git by default with the .gitignore included
 * in ZendSkeletonApplication. This is a good practice, as it prevents sensitive
 * credentials from accidentally being committed into version control.
 */

 $dbparam =array(
     'database'=>'Attarmenia_webCloud_DB',
     'username'=>'attarmeniadplive',
     'password'=>'Attarmenia7359',
     'port'=>'45472',
     'hostname'=>'pa272472-001.eu.clouddb.ovh.net'
 );
 return array(
 'service_manager' => array(
      'factories' => array(
         'Zend\Db\Adapter\Adapter' =>function($sm)use($dbparam){
            return new Zend\Db\Adapter\Adapter(array(
                'driver'=>'pdo',
                'dsn'=>'mysql:dbname='.$dbparam['database'].';host='.$dbparam['hostname'],
                'database'=>$dbparam['database'],
                'username'=>$dbparam['username'],
                'password'=>$dbparam['password'],
                'port'=>$dbparam['port'],
                'hostname'=>$dbparam['hostname'],
				'driver_options' => array(
					PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES UTF8"
				),
                ));
         },
      ),
   ),
);
