From 0eb9ceb8f899f0cb49e30ca7d200bff6bce5a5fb Mon Sep 17 00:00:00 2001
From: Alexander Makarov <sam@rmcreative.ru>
Date: Wed, 15 Oct 2014 18:02:45 +0400
Subject: [PATCH] Revert "implementing mongodb panel bootstrap behavior #3855"

---
 extensions/mongodb/composer.json          |  3 +--
 extensions/mongodb/debug/MongoDbPanel.php | 20 ++------------------
 2 files changed, 3 insertions(+), 20 deletions(-)

diff --git a/extensions/mongodb/composer.json b/extensions/mongodb/composer.json
index efc265b..142567c 100644
--- a/extensions/mongodb/composer.json
+++ b/extensions/mongodb/composer.json
@@ -27,7 +27,6 @@
     "extra": {
         "branch-alias": {
             "dev-master": "2.0.x-dev"
-        },
-        "bootstrap": "yii\\mongodb\\debug\\MongoDbPanel"
+        }
     }
 }
diff --git a/extensions/mongodb/debug/MongoDbPanel.php b/extensions/mongodb/debug/MongoDbPanel.php
index 92a18fc..e8b5e2e 100644
--- a/extensions/mongodb/debug/MongoDbPanel.php
+++ b/extensions/mongodb/debug/MongoDbPanel.php
@@ -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
--
libgit2 0.27.1