Commit aea6a947 authored by romanb's avatar romanb

moved configuration

parent b6642e2d
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* @author Roman Borschel <roman@code-factory.org> * @author Roman Borschel <roman@code-factory.org>
* @since 2.0 * @since 2.0
*/ */
class Doctrine_Configuration class Doctrine_Common_Configuration
{ {
private $_nullObject; private $_nullObject;
......
...@@ -172,7 +172,7 @@ class Doctrine_Connection ...@@ -172,7 +172,7 @@ class Doctrine_Connection
// Create default config and event manager if none given // Create default config and event manager if none given
if ( ! $config) { if ( ! $config) {
$this->_config = new Doctrine_Configuration(); $this->_config = new Doctrine_Common_Configuration();
} }
if ( ! $eventManager) { if ( ! $eventManager) {
$this->_eventManager = new Doctrine_Common_EventManager(); $this->_eventManager = new Doctrine_Common_EventManager();
......
...@@ -58,12 +58,12 @@ class Doctrine_ConnectionFactory ...@@ -58,12 +58,12 @@ class Doctrine_ConnectionFactory
* @param array $params * @param array $params
* @return Connection * @return Connection
*/ */
public function createConnection(array $params, Doctrine_Configuration $config = null, public function createConnection(array $params, Doctrine_Common_Configuration $config = null,
Doctrine_Common_EventManager $eventManager = null) Doctrine_Common_EventManager $eventManager = null)
{ {
// create default config and event manager, if not set // create default config and event manager, if not set
if ( ! $config) { if ( ! $config) {
$config = new Doctrine_Configuration(); $config = new Doctrine_Common_Configuration();
} }
if ( ! $eventManager) { if ( ! $eventManager) {
$eventManager = new Doctrine_Common_EventManager(); $eventManager = new Doctrine_Common_EventManager();
......
...@@ -148,7 +148,7 @@ class Doctrine_EntityManager ...@@ -148,7 +148,7 @@ class Doctrine_EntityManager
* @param Doctrine_Connection $conn * @param Doctrine_Connection $conn
* @param string $name * @param string $name
*/ */
protected function __construct(Doctrine_Connection $conn, $name, Doctrine_Configuration $config, protected function __construct(Doctrine_Connection $conn, $name, Doctrine_Common_Configuration $config,
Doctrine_Common_EventManager $eventManager) Doctrine_Common_EventManager $eventManager)
{ {
$this->_conn = $conn; $this->_conn = $conn;
......
...@@ -10,7 +10,7 @@ class Doctrine_OrmTestSuite extends Doctrine_TestSuite ...@@ -10,7 +10,7 @@ class Doctrine_OrmTestSuite extends Doctrine_TestSuite
{ {
protected function setUp() protected function setUp()
{ {
$config = new Doctrine_Configuration(); $config = new Doctrine_Common_Configuration();
$eventManager = new Doctrine_Common_EventManager(); $eventManager = new Doctrine_Common_EventManager();
$connectionOptions = array( $connectionOptions = array(
'driverClass' => 'Doctrine_ConnectionMock', 'driverClass' => 'Doctrine_ConnectionMock',
......
...@@ -33,11 +33,11 @@ class Doctrine_EntityManagerMock extends Doctrine_EntityManager ...@@ -33,11 +33,11 @@ class Doctrine_EntityManagerMock extends Doctrine_EntityManager
* @param Doctrine_EventManager $eventManager * @param Doctrine_EventManager $eventManager
* @return unknown * @return unknown
*/ */
public static function create($conn, $name, Doctrine_Configuration $config = null, public static function create($conn, $name, Doctrine_Common_Configuration $config = null,
Doctrine_Common_EventManager $eventManager = null) Doctrine_Common_EventManager $eventManager = null)
{ {
if (is_null($config)) { if (is_null($config)) {
$config = new Doctrine_Configuration(); $config = new Doctrine_Common_Configuration();
} }
if (is_null($eventManager)) { if (is_null($eventManager)) {
$eventManager = new Doctrine_Common_EventManager(); $eventManager = new Doctrine_Common_EventManager();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment