Integrate aura/session
and aura/auth
.
See .travis.yml
file.
composer require foa/auth-session-bundle
First install the dependencies via the command : composer install
To run the unit tests at the command line, issue ./vendor/bin/phpunit
.
This library attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request.
To ask questions, provide feedback, or otherwise communicate with the Aura community, please join our Google Group, follow @auraphp on Twitter, or chat with us on #auraphp on Freenode.
$session_factory = new \FOA\Auth_Session_Bundle\SessionFactory();
$session = $session_factory->newInstance($_COOKIE);
$segment = new \FOA\Auth_Session_Bundle\Segment($session, 'Aura\Auth\Session');
$auth_factory = new \Aura\Auth\AuthFactory($_COOKIE, $session, $segment);