/**
  * @param string $widget_class
  * @param string $widget_class_name
  */
 public function unregister($widget_class, $widget_class_name = '')
 {
     if (empty($widget_class_name) && is_object($widget_class)) {
         throw new RuntimeException('If widget class is object then you should define widget_class_name ot unregister it');
     }
     if (!empty($widget_class_name)) {
         unset($this->widgets[$widget_class_name]);
     } else {
         parent::unregister($widget_class);
     }
 }
 public function __construct()
 {
     parent::__construct();
 }