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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
f247f9d5
Commit
f247f9d5
authored
Oct 15, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5574 from yiisoft/revert-5566-3855-mongodb-panel-bootstrap
Revert "implementing mongodb panel bootstrap behavior #3855"
parents
33d19a2f
0eb9ceb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
21 deletions
+4
-21
composer.json
extensions/mongodb/composer.json
+1
-2
MongoDbPanel.php
extensions/mongodb/debug/MongoDbPanel.php
+3
-19
No files found.
extensions/mongodb/composer.json
View file @
f247f9d5
...
...
@@ -27,7 +27,6 @@
"extra"
:
{
"branch-alias"
:
{
"dev-master"
:
"2.0.x-dev"
},
"bootstrap"
:
"yii
\\
mongodb
\\
debug
\\
MongoDbPanel"
}
}
}
extensions/mongodb/debug/MongoDbPanel.php
View file @
f247f9d5
...
...
@@ -7,8 +7,6 @@
namespace
yii\mongodb\debug
;
use
yii\base\Application
;
use
yii\base\BootstrapInterface
;
use
yii\debug\panels\DbPanel
;
use
yii\log\Logger
;
...
...
@@ -18,22 +16,9 @@ use yii\log\Logger;
* @author Klimov Paul <klimov@zfort.com>
* @since 2.0.1
*/
class
MongoDbPanel
extends
DbPanel
implements
BootstrapInterface
class
MongoDbPanel
extends
DbPanel
{
/**
* 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
()
...
...
@@ -63,5 +48,4 @@ class MongoDbPanel extends DbPanel implements BootstrapInterface
'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