src/Cookie.php
public static function createFromIni(): CookieInterface
    {
        $params = session_get_cookie_params();

        return (new static())
            ->withLifetime($params["lifetime"])
            ->withPath($params["path"])
            ->withDomain($params["domain"])
            ->withSecure($params["secure"])
            ->withHttpOnly($params["httponly"]);
    }
public static function createFromIni(): CookieInterface
    {
        $params = session_get_cookie_params();

        return (new static())
            ->withLifetime($params["lifetime"])
            ->withPath($params["path"])
            ->withDomain($params["domain"])
            ->withSecure($params["secure"])
            ->withHttpOnly($params["httponly"]);
    }
public static function createFromIni ( ) : CookieInterface { $ params = session_get_cookie_params ( ) ; return ( new static ( ) ) -> withLifetime ( $ params [ "lifetime" ] ) -> withPath ( $ params [ "path" ] ) -> withDomain ( $ params [ "domain" ] ) -> withSecure ( $ params [ "secure" ] ) -> withHttpOnly ( $ params [ "httponly" ] ) ; }
Create a new instance from the current environment settings.

@return CookieInterface
Create a new instance from the current environment settings .