Merge pull request #5574 from yiisoft/revert-5566-3855-mongodb-panel-bootstrap

Revert "implementing mongodb panel bootstrap behavior #3855"
This commit is contained in:
Alexander Makarov
2014-10-15 18:02:52 +04:00
2 changed files with 3 additions and 20 deletions

View File

@@ -27,7 +27,6 @@
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "2.0.x-dev" "dev-master": "2.0.x-dev"
}, }
"bootstrap": "yii\\mongodb\\debug\\MongoDbPanel"
} }
} }

View File

@@ -7,8 +7,6 @@
namespace yii\mongodb\debug; namespace yii\mongodb\debug;
use yii\base\Application;
use yii\base\BootstrapInterface;
use yii\debug\panels\DbPanel; use yii\debug\panels\DbPanel;
use yii\log\Logger; use yii\log\Logger;
@@ -18,21 +16,8 @@ use yii\log\Logger;
* @author Klimov Paul <klimov@zfort.com> * @author Klimov Paul <klimov@zfort.com>
* @since 2.0.1 * @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 * @inheritdoc
*/ */
@@ -63,5 +48,4 @@ class MongoDbPanel extends DbPanel implements BootstrapInterface
'yii\mongodb\Database::*', 'yii\mongodb\Database::*',
]); ]);
} }
}
}