Silber\Bouncer\Factory::getGate PHP Method

getGate() protected method

Get an instance of the gate.
protected getGate ( ) : Illuminate\Contracts\Auth\Access\Gate
return Illuminate\Contracts\Auth\Access\Gate
    protected function getGate()
    {
        if ($this->gate) {
            return $this->gate;
        }
        return new Gate($this->getContainer(), function () {
            return $this->user;
        });
    }