cable/cable-cookie

MIT

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/cable/cable-cookie

1.0.0 2017-06-05 09:26 UTC

This package is not auto-updated.

Last update: 2025-09-28 09:35:14 UTC


README

Cookie Library for Cable Framework

$container = \Cable\Container\Factory::create();
$container->add('request', \Symfony\Component\HttpFoundation\Request::createFromGlobals());

$container->addProvider(\Cable\Cookie\CookieServiceProvider::class);
$container->singleton('response', \Symfony\Component\HttpFoundation\Response::create());
$cookie = $container['cookie'];

var_dump($cookie);

Session

$container = \Cable\Container\Factory::create();

$container->addProvider(\Cable\Session\SessionServiceProvider::class);
$container->singleton('response', \Symfony\Component\HttpFoundation\Response::create());
$session = $container['session'];

$flash = $container['flashbag'];