cable/cable-cookie

1.0.0 2017-06-05 09:26 UTC

This package is not auto-updated.

Last update: 2024-04-28 02:37:40 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'];