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__);
}
}