init() public method

Initializes the FragmentCache object.
public init ( )
 public function init()
 {
     parent::init();
     if ($this->viewElementsGathener === null) {
         throw new InvalidConfigException('ViewElementsGathener should be set');
     }
     if (is_string($this->viewElementsGathener)) {
         $this->viewElementsGathener = Yii::$app->get($this->viewElementsGathener);
     }
 }