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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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__); } }