Continued:
[core.git] / framework / main / interfaces / response / class_Responseable.php
index 0713ab78936a5064e758ad025e3eaa642db6c1c8..0a302497048c019c69374193876f582afe8b61c3 100644 (file)
@@ -4,7 +4,6 @@ namespace Org\Mxchange\CoreFramework\Response;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
-use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
 
 /**
  * An interface for responses
@@ -84,10 +83,11 @@ interface Responseable extends FrameworkInterface {
         * @param       $cookieName             Cookie's name
         * @param       $cookieValue    Value to store in the cookie
         * @param       $encrypted              Do some extra encryption on the value
+        * @param       $expires                Timestamp of expiration (default: configured)
         * @return      void
         * @throws      ResponseHeadersAlreadySentException             If headers are already sent
         */
-       function addCookie ($cookieName, $cookieValue, $encrypted = false);
+       function addCookie (string $cookieName, $cookieValue, bool $encrypted = FALSE, int $expires = NULL);
 
        /**
         * Redirect to a configured URL. The URL can be absolute or relative. In
@@ -116,12 +116,4 @@ interface Responseable extends FrameworkInterface {
         */
        function refreshCookie ($cookieName);
 
-       /**
-        * Initializes the template engine instance
-        *
-        * @param       $applicationInstance    An instance of a manageable application
-        * @return      void
-        */
-       function initTemplateEngine (ManageableApplication $applicationInstance);
-
 }