public function addCookie(
        $name,
        $value,
        $expire = 0,
        $path = '/',
        $domain = '',
        $secure = false,
        $httpOnly = true
    ) {
        return (new CookieInjector)->build()->set($name, $value, $expire, $path, $domain, $secure, $httpOnly);
    }
public function addCookie(
        $name,
        $value,
        $expire = 0,
        $path = '/',
        $domain = '',
        $secure = false,
        $httpOnly = true
    ) {
        return (new CookieInjector)->build()->set($name, $value, $expire, $path, $domain, $secure, $httpOnly);
    }
public function addCookie ( $ name , $ value , $ expire = 0 , $ path = '/' , $ domain = '' , $ secure = false , $ httpOnly = true ) { return ( new CookieInjector ) -> build ( ) -> set ( $ name , $ value , $ expire , $ path , $ domain , $ secure , $ httpOnly ) ; }
Add data into cookie

@access public

@param string $name cookie name
@param mixed $value data value
@param int $expire life time
@param string $path path access cookie
@param string $domain domain access cookie
@param bool $secure use SSL?
@param bool $httpOnly disable on JS?

@return mixed
@throws Exception
Add data into cookie