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
0fef12f6
Commit
0fef12f6
authored
Oct 15, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5566 from trntv/3855-mongodb-panel-bootstrap
implementing mongodb panel bootstrap behavior #3855
parents
c7a7a312
ef0a3847
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
composer.json
extensions/mongodb/composer.json
+2
-1
MongoDbPanel.php
extensions/mongodb/debug/MongoDbPanel.php
+19
-3
No files found.
extensions/mongodb/composer.json
View file @
0fef12f6
...
...
@@ -27,6 +27,7 @@
"extra"
:
{
"branch-alias"
:
{
"dev-master"
:
"2.0.x-dev"
}
},
"bootstrap"
:
"yii
\\
mongodb
\\
debug
\\
MongoDbPanel"
}
}
extensions/mongodb/debug/MongoDbPanel.php
View file @
0fef12f6
...
...
@@ -7,6 +7,8 @@
namespace
yii\mongodb\debug
;
use
yii\base\Application
;
use
yii\base\BootstrapInterface
;
use
yii\debug\panels\DbPanel
;
use
yii\log\Logger
;
...
...
@@ -16,9 +18,22 @@ use yii\log\Logger;
* @author Klimov Paul <klimov@zfort.com>
* @since 2.0.1
*/
class
MongoDbPanel
extends
DbPanel
class
MongoDbPanel
extends
DbPanel
implements
BootstrapInterface
{
/**
* Bootstrap method to be called during application bootstrap stage.
* @param Application $app the application currently running
*/
public
function
bootstrap
(
$app
)
{
$modules
=
$app
->
getModules
();
if
(
isset
(
$modules
[
'debug'
])){
$modules
[
'debug'
][
'panels'
][
'mongodb'
]
=
[
'class'
=>
self
::
className
()];
}
$app
->
setModules
(
$modules
);
}
/**
* @inheritdoc
*/
public
function
getName
()
...
...
@@ -48,4 +63,5 @@ class MongoDbPanel extends DbPanel
'yii\mongodb\Database::*'
,
]);
}
}
\ No newline at end of file
}
\ 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