-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
2,550 additions
and
327 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?php | ||
/** | ||
* Luminova Framework | ||
* | ||
* @package Luminova | ||
* @author Ujah Chigozie Peter | ||
* @copyright (c) Nanoblock Technology Ltd | ||
* @license See LICENSE file | ||
*/ | ||
|
||
namespace App\Controllers\Config; | ||
|
||
class Cookie | ||
{ | ||
/** | ||
* The path where session files are stored on the server. | ||
* @var string $savePath; | ||
*/ | ||
public string $savePath = ""; | ||
|
||
/** | ||
* The lifetime of the session in seconds. | ||
* @var int $expiration; | ||
*/ | ||
public int $expiration = 365 * 24 * 60 * 60; | ||
|
||
/** | ||
* The path to use for the session cookie. | ||
* @var string $sessionPath; | ||
*/ | ||
public string $cookiePath = "/"; | ||
|
||
/** | ||
* The domain to use for the session cookie. | ||
* @var string $sessionDomain; | ||
*/ | ||
public string $cookieDomain = ".localhost"; | ||
|
||
/** | ||
* Set the session cookie security level. | ||
* None, Lax, Strict | ||
* @var string $sameSite; | ||
*/ | ||
public string $sameSite = "Lax"; | ||
|
||
/** | ||
* | ||
* Cookie will only be set if a secure HTTPS connection exists. | ||
*/ | ||
public bool $secure = false; | ||
|
||
/** | ||
* | ||
* Cookie will only be accessible via HTTP(S) (no JavaScript). | ||
*/ | ||
public bool $httpOnly = true; | ||
|
||
/** | ||
* This flag allows setting a "raw" cookie, i.e., its name and value are | ||
* not URL encoded using `rawurlencode()`. | ||
* | ||
* If this is set to `true`, cookie names should be compliant of RFC 2616's | ||
* list of allowed characters. | ||
* | ||
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#attributes | ||
* @see https://tools.ietf.org/html/rfc2616#section-2.2 | ||
*/ | ||
public bool $cookieRaw = false; | ||
} |
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/** | ||
* Luminova Framework | ||
* | ||
* @package Luminova | ||
* @author Ujah Chigozie Peter | ||
* @copyright (c) Nanoblock Technology Ltd | ||
* @license See LICENSE file | ||
*/ | ||
|
||
return [ | ||
'aliases' => [ | ||
//'FooAlias' => 'SomeLiterary\Foo', | ||
] | ||
]; |
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
Empty file.
Oops, something went wrong.