cable / cable-cookie
MIT
1.0.0
2017-06-05 09:26 UTC
Requires
- cable/cable-container: ^1.2
- cable/cable-facades: ^1.0
- symfony/http-foundation: ^3.3
This package is not auto-updated.
Last update: 2024-11-10 05:14:09 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'];