PHP Classes

File: app/configs/components/connection.php

Recommend this page to a friend!
  Classes of Oleg Lunegov   MicroPHP Framework   app/configs/components/connection.php   Download  
File: app/configs/components/connection.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: MicroPHP Framework
MVC framework for Web or command line applications
Author: By
Last change: Update of app/configs/components/connection.php
Date: 7 months ago
Size: 336 bytes
 

Contents

Class file image Download
<?php

// DataBase
return [
   
'class' => '\Micro\Db\DbConnection',
   
'arguments' => [
       
'connectionString' => 'mysql:host=localhost;dbname=micro',
       
'username' => 'micro',
       
'password' => 'micro',
       
'options' => [PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''],
       
'container' => '@this'
   
]
];