Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
PSDI Army
yii2
Commits
65b2aa82
Commit
65b2aa82
authored
Jan 09, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed Mongo → MongoDB in exception messages and logs
parent
c79994c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Connection.php
extensions/yii/mongodb/Connection.php
+2
-2
Exception.php
extensions/yii/mongodb/Exception.php
+2
-1
No files found.
extensions/yii/mongodb/Connection.php
View file @
65b2aa82
...
...
@@ -223,7 +223,7 @@ class Connection extends Component
if
(
empty
(
$this
->
dsn
))
{
throw
new
InvalidConfigException
(
$this
->
className
()
.
'::dsn cannot be empty.'
);
}
$token
=
'Opening Mongo connection: '
.
$this
->
dsn
;
$token
=
'Opening Mongo
DB
connection: '
.
$this
->
dsn
;
try
{
Yii
::
trace
(
$token
,
__METHOD__
);
Yii
::
beginProfile
(
$token
,
__METHOD__
);
...
...
@@ -248,7 +248,7 @@ class Connection extends Component
public
function
close
()
{
if
(
$this
->
mongoClient
!==
null
)
{
Yii
::
trace
(
'Closing Mongo connection: '
.
$this
->
dsn
,
__METHOD__
);
Yii
::
trace
(
'Closing Mongo
DB
connection: '
.
$this
->
dsn
,
__METHOD__
);
$this
->
mongoClient
=
null
;
$this
->
_databases
=
[];
}
...
...
extensions/yii/mongodb/Exception.php
View file @
65b2aa82
...
...
@@ -20,6 +20,6 @@ class Exception extends \yii\base\Exception
*/
public
function
getName
()
{
return
'Mongo Exception'
;
return
'Mongo
DB
Exception'
;
}
}
\ No newline at end of file
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