| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace Illuminate\Support\Facades;
|
|
|
4 |
|
|
|
5 |
/**
|
|
|
6 |
* @method static bool shouldBlock()
|
|
|
7 |
* @method static string|null blockDriver()
|
|
|
8 |
* @method static array getSessionConfig()
|
|
|
9 |
* @method static string getDefaultDriver()
|
|
|
10 |
* @method static void setDefaultDriver(string $name)
|
|
|
11 |
* @method static mixed driver(string|null $driver = null)
|
|
|
12 |
* @method static \Illuminate\Session\SessionManager extend(string $driver, \Closure $callback)
|
|
|
13 |
* @method static array getDrivers()
|
|
|
14 |
* @method static \Illuminate\Contracts\Container\Container getContainer()
|
|
|
15 |
* @method static \Illuminate\Session\SessionManager setContainer(\Illuminate\Contracts\Container\Container $container)
|
|
|
16 |
* @method static \Illuminate\Session\SessionManager forgetDrivers()
|
|
|
17 |
* @method static bool start()
|
|
|
18 |
* @method static void save()
|
|
|
19 |
* @method static void ageFlashData()
|
|
|
20 |
* @method static array all()
|
|
|
21 |
* @method static array only(array $keys)
|
|
|
22 |
* @method static bool exists(string|array $key)
|
|
|
23 |
* @method static bool missing(string|array $key)
|
|
|
24 |
* @method static bool has(string|array $key)
|
|
|
25 |
* @method static mixed get(string $key, mixed $default = null)
|
|
|
26 |
* @method static mixed pull(string $key, mixed $default = null)
|
|
|
27 |
* @method static bool hasOldInput(string|null $key = null)
|
|
|
28 |
* @method static mixed getOldInput(string|null $key = null, mixed $default = null)
|
|
|
29 |
* @method static void replace(array $attributes)
|
|
|
30 |
* @method static void put(string|array $key, mixed $value = null)
|
|
|
31 |
* @method static mixed remember(string $key, \Closure $callback)
|
|
|
32 |
* @method static void push(string $key, mixed $value)
|
|
|
33 |
* @method static mixed increment(string $key, int $amount = 1)
|
|
|
34 |
* @method static int decrement(string $key, int $amount = 1)
|
|
|
35 |
* @method static void flash(string $key, mixed $value = true)
|
|
|
36 |
* @method static void now(string $key, mixed $value)
|
|
|
37 |
* @method static void reflash()
|
|
|
38 |
* @method static void keep(array|mixed $keys = null)
|
|
|
39 |
* @method static void flashInput(array $value)
|
|
|
40 |
* @method static mixed remove(string $key)
|
|
|
41 |
* @method static void forget(string|array $keys)
|
|
|
42 |
* @method static void flush()
|
|
|
43 |
* @method static bool invalidate()
|
|
|
44 |
* @method static bool regenerate(bool $destroy = false)
|
|
|
45 |
* @method static bool migrate(bool $destroy = false)
|
|
|
46 |
* @method static bool isStarted()
|
|
|
47 |
* @method static string getName()
|
|
|
48 |
* @method static void setName(string $name)
|
|
|
49 |
* @method static string getId()
|
| 399 |
lars |
50 |
* @method static void setId(string|null $id)
|
|
|
51 |
* @method static bool isValidId(string|null $id)
|
| 148 |
lars |
52 |
* @method static void setExists(bool $value)
|
|
|
53 |
* @method static string token()
|
|
|
54 |
* @method static void regenerateToken()
|
|
|
55 |
* @method static string|null previousUrl()
|
|
|
56 |
* @method static void setPreviousUrl(string $url)
|
|
|
57 |
* @method static void passwordConfirmed()
|
|
|
58 |
* @method static \SessionHandlerInterface getHandler()
|
| 399 |
lars |
59 |
* @method static \SessionHandlerInterface setHandler(\SessionHandlerInterface $handler)
|
| 148 |
lars |
60 |
* @method static bool handlerNeedsRequest()
|
|
|
61 |
* @method static void setRequestOnHandler(\Illuminate\Http\Request $request)
|
|
|
62 |
* @method static void macro(string $name, object|callable $macro)
|
|
|
63 |
* @method static void mixin(object $mixin, bool $replace = true)
|
|
|
64 |
* @method static bool hasMacro(string $name)
|
|
|
65 |
* @method static void flushMacros()
|
|
|
66 |
*
|
|
|
67 |
* @see \Illuminate\Session\SessionManager
|
|
|
68 |
*/
|
|
|
69 |
class Session extends Facade
|
|
|
70 |
{
|
|
|
71 |
/**
|
|
|
72 |
* Get the registered name of the component.
|
|
|
73 |
*
|
|
|
74 |
* @return string
|
|
|
75 |
*/
|
|
|
76 |
protected static function getFacadeAccessor()
|
|
|
77 |
{
|
|
|
78 |
return 'session';
|
|
|
79 |
}
|
|
|
80 |
}
|