From f6933b82bbdb767480abf4cf6818b2db56fae1cc Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Sat, 2 May 2015 15:54:22 +0200 Subject: Use composer to pull in propel and set it up --- Aufgabe06/generated-conf/config.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Aufgabe06/generated-conf/config.php (limited to 'Aufgabe06/generated-conf/config.php') diff --git a/Aufgabe06/generated-conf/config.php b/Aufgabe06/generated-conf/config.php new file mode 100644 index 0000000..aa72b6b --- /dev/null +++ b/Aufgabe06/generated-conf/config.php @@ -0,0 +1,29 @@ +checkVersion('2.0.0-dev'); +$serviceContainer->setAdapterClass('default', 'mysql'); +$manager = new \Propel\Runtime\Connection\ConnectionManagerSingle(); +$manager->setConfiguration(array ( + 'classname' => 'Propel\\Runtime\\Connection\\ConnectionWrapper', + 'dsn' => 'mysql:host=localhost;dbname=catalog', + 'user' => 'root', + 'password' => '', + 'options' => + array ( + 'ATTR_PERSISTENT' => false, + ), + 'attributes' => + array ( + 'ATTR_EMULATE_PREPARES' => false, + ), + 'settings' => + array ( + 'charset' => 'utf8', + 'queries' => + array ( + ), + ), +)); +$manager->setName('default'); +$serviceContainer->setConnectionManager('default', $manager); +$serviceContainer->setDefaultDatasource('default'); \ No newline at end of file -- cgit v1.2.3-70-g09d2