Set the default path and domain for the jar.

@param  string $path
@param  string $domain
@param  bool $secure
@return $this
428677
public function setDefaultPathAndDomain( $path, $domain, $secure = false )
	{
		list( $this->path, $this->domain, $this->secure ) = [$path, $domain, $secure];

		return $this;
	}
281006
public function setCookie(
        $cookie_key,
        $cookie_value,
        $expire = null,
        $path = null,
        $domain = null,
        $secure = null,
        $httpOnly = null
    )
    {
        setcookie($cookie_key, Lb::app()->encryptByConfig($cookie_value), $expire, $path, $domain, $secure, $httpOnly);
    }
1179390
public static function set($key, $value = '', $time = 0, $path = '/', $domain = '', $secure = FALSE, $httponly = FALSE) {
        return setcookie($key, self::encode($value), time() + $time, $path, $domain, $secure, $httponly);
    }
519203
protected function save( $path = NULL, $domain = NULL, $secure = NULL, $httpOnly = NULL )
	{
		$value		= json_encode( $this->data );
		$path		= $path !== NULL ? $path : $this->path;
		$domain		= $domain !== NULL ? $domain : $this->domain;
		$secure		= $secure !== NULL ? $secure : $this->secure;
		$httpOnly	= $httpOnly !== NULL ? $httpOnly : $this->httpOnly;
		setCookie( $this->partition, $value, $path, $domain, $secure, $httpOnly );
	}
976116
public function addPath($path, $domain = '')
    {
        $this->tpl->getLoader()->addPath($path, $domain);
        return $this;
    }
939581
public static function set($key, $value, $expire = null, $path = null, $domain = null, $secure = null, $httpOnly = null)
    {
        $result = setcookie($key, $value, $expire, $path, $domain, $secure, $httpOnly);
        return $result;
    }
803893
protected function getPathAndDomain( $path, $domain, $secure = false )
	{
		return [$path ?: $this->path, $domain ?: $this->domain, $secure ?: $this->secure];
	}
710956
public static function make(
        $name = '',
        $value = '',
        $expires = 0,
        $path = '/',
        $domain = null,
        $secure = false,
        $httpOnly = false
    ) {

        return new self($name, $value, $expires, $path, $domain, $secure, $httpOnly);
    }
31310
public function cookie($name, $value, $expires = 0, $path = '', $domain = '', $secure = false, $httpOnly = false)
    {
        $cookie = new Cookie(
            $name,
            $value,
            $expires
        );

        return $cookie
            ->setPath($path)
            ->setDomain($domain)
            ->setIsSecure($secure)
            ->setIsHttpOnly($httpOnly)
            ->commit();
    }
1173210
public function setDomain($domain)
    {
        try {
            $this->domain = (string) $domain;
        } catch (Exception $e) {
            throw new InvalidArgumentException(
                'Value provided as domain is not a string'
            );
        }

        return $this;
    }
750176
public function asset($path, $secure = null)
    {
        if ($this->isValidUrl($path)) {
            return $path;
        }

        // Once we get the root URL, we will check to see if it contains an index.php
        // file in the paths. If it does, we will remove it since it is not needed
        // for asset paths, but only for routes to endpoints in the application.
        $root = $this->newGetRootUrl($this->getScheme($secure));

        return $this->removeIndex($root).'/'.trim($path, '/');
    }
1007963
public function set($name, $value, $expire=0, $path='', $domain='', $secure=FALSE, $httponly=FALSE) {
		$_COOKIE[$name] = $this->encrypt( $value );
		return setcookie($name, $_COOKIE[$name], $expire, $path, $domain, $secure, $httponly);
	}
50411
public function setSecureData(array $data, $expires = 0, $path = null, $domain = null)
    {
        //argment test
        Argument::i()
            //argument 2 must be a integer
            ->test(2, 'int')
            //argument 3 must be a string or null
            ->test(3, 'string', 'null')
            //argument 4 must be a string or null
            ->test(4, 'string', 'null');

        $this->setData($data, $expires, $path, $domain, true, false);
        return $this;
    }
206623
public function setParameter($key, $value, $domain = null)
    {
        if (is_null($domain)) {
            $this->config[$key] = $value;

            return $this;
        }
        if (!isset($this->config[$domain])) {
            $this->config[$domain] = array();
        }
        $this->config[$domain][$key] = $value;

        return $this;
    }
86764
public function addResourcePath($domain, $path) {
        $code = $this->getCode();

        $this->getLocaleBundle()->addPath($domain, sprintf('%s/locales/%s', $path, $code));

        $this->getMessageBundle()->addPaths($domain, [
            sprintf('%s/messages/%s', $path, $code),
            sprintf('%s/messages/%s/LC_MESSAGES', $path, $code) // gettext
        ]);

        return $this;
    }
1348750
protected function setCookie($value, $lifetime, $path = null, $domain = null, $secure = null, $httpOnly = null)
    {
        setcookie(
            $this->options['name'],
            json_encode($value),
            $lifetime,
            $path ?: $this->options['path'],
            $domain ?: $this->options['domain'],
            $secure ?: $this->options['secure'],
            $httpOnly ?: $this->options['http_only']
        );
    }
1061660
public function addTextDomain($domain, $path): void
    {
        // check path
        if (!is_dir($path)) {
            throw new ConfigurationException("Translator configuration path `$path` not found");
        }

        bindtextdomain($domain, $path);

        // @todo: hardcoded codeset
        bind_textdomain_codeset($domain, 'UTF-8');
    }