Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
aea6a947
Commit
aea6a947
authored
Sep 12, 2008
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved configuration
parent
b6642e2d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
Configuration.php
lib/Doctrine/Common/Configuration.php
+1
-1
Connection.php
lib/Doctrine/Connection.php
+1
-1
ConnectionFactory.php
lib/Doctrine/ConnectionFactory.php
+2
-2
EntityManager.php
lib/Doctrine/EntityManager.php
+1
-1
Doctrine_OrmTestSuite.php
tests/lib/Doctrine_OrmTestSuite.php
+1
-1
Doctrine_EntityManagerMock.php
tests/lib/mocks/Doctrine_EntityManagerMock.php
+2
-2
No files found.
lib/Doctrine/Configuration.php
→
lib/Doctrine/Co
mmon/Co
nfiguration.php
View file @
aea6a947
...
...
@@ -33,7 +33,7 @@
* @author Roman Borschel <roman@code-factory.org>
* @since 2.0
*/
class
Doctrine_Configuration
class
Doctrine_Co
mmon_Co
nfiguration
{
private
$_nullObject
;
...
...
lib/Doctrine/Connection.php
View file @
aea6a947
...
...
@@ -172,7 +172,7 @@ class Doctrine_Connection
// Create default config and event manager if none given
if
(
!
$config
)
{
$this
->
_config
=
new
Doctrine_Configuration
();
$this
->
_config
=
new
Doctrine_Co
mmon_Co
nfiguration
();
}
if
(
!
$eventManager
)
{
$this
->
_eventManager
=
new
Doctrine_Common_EventManager
();
...
...
lib/Doctrine/ConnectionFactory.php
View file @
aea6a947
...
...
@@ -58,12 +58,12 @@ class Doctrine_ConnectionFactory
* @param array $params
* @return Connection
*/
public
function
createConnection
(
array
$params
,
Doctrine_Configuration
$config
=
null
,
public
function
createConnection
(
array
$params
,
Doctrine_Co
mmon_Co
nfiguration
$config
=
null
,
Doctrine_Common_EventManager
$eventManager
=
null
)
{
// create default config and event manager, if not set
if
(
!
$config
)
{
$config
=
new
Doctrine_Configuration
();
$config
=
new
Doctrine_Co
mmon_Co
nfiguration
();
}
if
(
!
$eventManager
)
{
$eventManager
=
new
Doctrine_Common_EventManager
();
...
...
lib/Doctrine/EntityManager.php
View file @
aea6a947
...
...
@@ -148,7 +148,7 @@ class Doctrine_EntityManager
* @param Doctrine_Connection $conn
* @param string $name
*/
protected
function
__construct
(
Doctrine_Connection
$conn
,
$name
,
Doctrine_Configuration
$config
,
protected
function
__construct
(
Doctrine_Connection
$conn
,
$name
,
Doctrine_Co
mmon_Co
nfiguration
$config
,
Doctrine_Common_EventManager
$eventManager
)
{
$this
->
_conn
=
$conn
;
...
...
tests/lib/Doctrine_OrmTestSuite.php
View file @
aea6a947
...
...
@@ -10,7 +10,7 @@ class Doctrine_OrmTestSuite extends Doctrine_TestSuite
{
protected
function
setUp
()
{
$config
=
new
Doctrine_Configuration
();
$config
=
new
Doctrine_Co
mmon_Co
nfiguration
();
$eventManager
=
new
Doctrine_Common_EventManager
();
$connectionOptions
=
array
(
'driverClass'
=>
'Doctrine_ConnectionMock'
,
...
...
tests/lib/mocks/Doctrine_EntityManagerMock.php
View file @
aea6a947
...
...
@@ -33,11 +33,11 @@ class Doctrine_EntityManagerMock extends Doctrine_EntityManager
* @param Doctrine_EventManager $eventManager
* @return unknown
*/
public
static
function
create
(
$conn
,
$name
,
Doctrine_Configuration
$config
=
null
,
public
static
function
create
(
$conn
,
$name
,
Doctrine_Co
mmon_Co
nfiguration
$config
=
null
,
Doctrine_Common_EventManager
$eventManager
=
null
)
{
if
(
is_null
(
$config
))
{
$config
=
new
Doctrine_Configuration
();
$config
=
new
Doctrine_Co
mmon_Co
nfiguration
();
}
if
(
is_null
(
$eventManager
))
{
$eventManager
=
new
Doctrine_Common_EventManager
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment