/**
  * This method is called by the frontend rendering hook contentPostProc->output
  *
  * @param array $parameters
  * @param \tslib_fe $typoScriptFrontendController
  */
 public function parseFE(array &$parameters, $typoScriptFrontendController)
 {
     // Parsing the content if not explicitly disabled
     if ($this->requestContext->isUrlRewritingEnabled()) {
         $typoScriptFrontendController->content = $this->getHtmlParser()->parse($typoScriptFrontendController->content);
     }
 }
 /**
  * Publishes an Apache2 .htaccess file which allows access to the given directory only for the current session remote ip
  *
  * @param string $path The path to publish the restrictions for
  * @return void
  */
 public function publishAccessRestrictionsForPath($path)
 {
     //		$remoteAddress = $this->requestContext->getIpAddress();
     $cookieName = $this->requestContext->getCookieName();
     $cookieValue = $this->requestContext->getAccessToken();
     //		if ($remoteAddress !== NULL) {
     //			$content = sprintf(
     //				$this->htaccessTemplateIpCheck,
     //				$remoteAddress,
     //				$cookieName,
     //				$cookieValue
     //			);
     //		} else {
     $content = sprintf($this->htaccessTemplate, $cookieName, $cookieValue);
     //		}
     file_put_contents($path . '.htaccess', $content);
 }