Skip to content

Commit

Permalink
add namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
dedemao committed May 16, 2020
1 parent 3027c45 commit da95bc1
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/github.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 18 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
{
"name": "dedemao/mongodb",
"description": "A simple mongoDB library for PHP7",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "dedemao",
"email": "[email protected]"
}
],
"require": {}
"name": "dedemao/mongodb",
"description": "A simple mongoDB library for PHP7",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "dedemao",
"email": "[email protected]"
}
],
"require": {
"php": ">=7.0"
},
"autoload": {
"psr-4": {
"dedemao\\mongodb\\": "src/"
}
}
}
2 changes: 2 additions & 0 deletions mongoDBHelper/src/mongoDBHelper.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
namespace dedemao\mongodb;

class MongoDBHelper
{
private static $_manager = null; //所有数据库实例共用,避免重复连接数据库
Expand Down

0 comments on commit da95bc1

Please sign in to comment.