public function bootPlugin(PluginEntity $entity)
{
$pluginObj = $entity->getObject();
// register & boot plugin's components
$this->register->addByEntity($entity);
$entity->bootComponents();
// bind plugin to application
$this->app->instance(get_class($pluginObj), $pluginObj);
// boot plugin
$pluginObj->boot();
$this->registerViewNamespace($entity);
}