27 lines
816 B
PHP
27 lines
816 B
PHP
<?php
|
|
$serviceContainer = \Propel\Runtime\Propel::getServiceContainer();
|
|
$serviceContainer->checkVersion('2.0.0-dev');
|
|
$serviceContainer->setAdapterClass('thelia', 'mysql');
|
|
$manager = new \Propel\Runtime\Connection\ConnectionManagerSingle();
|
|
$manager->setConfiguration(array (
|
|
'dsn' => 'mysql:host=localhost;dbname=pala4545_thel858;port=3306',
|
|
'user' => 'pala4545_thel858',
|
|
'password' => '!25pl56-SU',
|
|
'classname' => '\\Propel\\Runtime\\Connection\\ConnectionWrapper',
|
|
'settings' =>
|
|
array (
|
|
'queries' =>
|
|
array (
|
|
0 => 'SET NAMES \'UTF8\'',
|
|
),
|
|
'charset' => 'utf8',
|
|
),
|
|
'model_paths' =>
|
|
array (
|
|
0 => 'src',
|
|
1 => 'vendor',
|
|
),
|
|
));
|
|
$manager->setName('thelia');
|
|
$serviceContainer->setConnectionManager('thelia', $manager);
|
|
$serviceContainer->setDefaultDatasource('thelia'); |