-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.php
More file actions
26 lines (26 loc) · 767 Bytes
/
database.php
File metadata and controls
26 lines (26 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
$serviceContainer = \Propel\Runtime\Propel::getServiceContainer();
$serviceContainer->checkVersion('2.0.0-dev');
$serviceContainer->setAdapterClass('default', 'mysql');
$manager = new \Propel\Runtime\Connection\ConnectionManagerSingle();
$manager->setConfiguration(array (
'dsn' => 'mysql:host=localhost;port=3306;dbname=coctails',
'user' => 'root',
'password' => '',
'settings' =>
array (
'charset' => 'utf8',
'queries' =>
array (
),
),
'classname' => '\\Propel\\Runtime\\Connection\\ConnectionWrapper',
'model_paths' =>'\models',
array (
0 => 'src',
1 => 'vendor',
),
));
$manager->setName('default');
$serviceContainer->setConnectionManager('default', $manager);
$serviceContainer->setDefaultDatasource('default');