Cartalyst\Sentinel\Sentinel::__construct PHP Method

__construct() public method

Create a new Sentinel instance.
public __construct ( Cartalyst\Sentinel\Persistences\PersistenceRepositoryInterface $persistences, Cartalyst\Sentinel\Users\UserRepositoryInterface $users, Cartalyst\Sentinel\Roles\RoleRepositoryInterface $roles, Cartalyst\Sentinel\Activations\ActivationRepositoryInterface $activations, Illuminate\Events\Dispatcher $dispatcher ) : void
$persistences Cartalyst\Sentinel\Persistences\PersistenceRepositoryInterface
$users Cartalyst\Sentinel\Users\UserRepositoryInterface
$roles Cartalyst\Sentinel\Roles\RoleRepositoryInterface
$activations Cartalyst\Sentinel\Activations\ActivationRepositoryInterface
$dispatcher Illuminate\Events\Dispatcher
return void
    public function __construct(PersistenceRepositoryInterface $persistences, UserRepositoryInterface $users, RoleRepositoryInterface $roles, ActivationRepositoryInterface $activations, Dispatcher $dispatcher)
    {
        $this->persistences = $persistences;
        $this->users = $users;
        $this->roles = $roles;
        $this->activations = $activations;
        $this->dispatcher = $dispatcher;
    }