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
Requires
- cable/cable-container: ^1.2
- cable/cable-facades: ^1.0
- symfony/http-foundation: ^3.3
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'];