Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
47 lines (43 sloc)
1.4 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Illuminate\Contracts\Cookie; | |
interface Factory | |
{ | |
/** | |
* Create a new cookie instance. | |
* | |
* @param string $name | |
* @param string $value | |
* @param int $minutes | |
* @param string|null $path | |
* @param string|null $domain | |
* @param bool|null $secure | |
* @param bool $httpOnly | |
* @param bool $raw | |
* @param string|null $sameSite | |
* @return \Symfony\Component\HttpFoundation\Cookie | |
*/ | |
public function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null); | |
/** | |
* Create a cookie that lasts "forever" (five years). | |
* | |
* @param string $name | |
* @param string $value | |
* @param string|null $path | |
* @param string|null $domain | |
* @param bool|null $secure | |
* @param bool $httpOnly | |
* @param bool $raw | |
* @param string|null $sameSite | |
* @return \Symfony\Component\HttpFoundation\Cookie | |
*/ | |
public function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null); | |
/** | |
* Expire the given cookie. | |
* | |
* @param string $name | |
* @param string|null $path | |
* @param string|null $domain | |
* @return \Symfony\Component\HttpFoundation\Cookie | |
*/ | |
public function forget($name, $path = null, $domain = null); | |
} |