Reasonable Session service for Aura.Auth's session?

34 views
Skip to first unread message

Chris Johnson

unread,
Oct 9, 2017, 8:12:34 PM10/9/17
to The Aura Project for PHP
I'm using Radar.Adr with Aura.Auth and Aura.Di.  I want a nice interface to my PHP session.  I think I could add Aura.Session to the mix of dependent libraries, but Aura.Auth's included Segment class does everything I want.

Is this a reasonable approach, below?  Then I can just inject an instance of this class where ever I need PHP session access.

use Aura\Auth\Session\Segment;

/**
* Domain service to handle session data access.
*/
class SessionService extends Segment
{
public function __construct()
{
parent::__construct(__CLASS__);
}
}
Reply all
Reply to author
Forward
0 new messages