public function endBody()
    {
        $this->emit(self::EVENT_END_BODY, [$this]);
        echo self::PH_BODY_END;

        foreach (array_keys($this->assetBundles) as $bundle) {
            $this->registerAssetFiles($bundle);
        }
    }