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
0eb9ceb8
Commit
0eb9ceb8
authored
Oct 15, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "implementing mongodb panel bootstrap behavior #3855"
parent
33d19a2f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
20 deletions
+2
-20
composer.json
extensions/mongodb/composer.json
+1
-2
MongoDbPanel.php
extensions/mongodb/debug/MongoDbPanel.php
+1
-18
No files found.
extensions/mongodb/composer.json
View file @
0eb9ceb8
...
...
@@ -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 @
0eb9ceb8
...
...
@@ -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
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