PHP Class Silber\Bouncer\Factory

Afficher le fichier Open project: JosephSilber/bouncer

Protected Properties

Свойство Type Description
$cache Illuminate\Contracts\Cache\Store The cache instance to use for the clipboard.
$clipboard Silber\Bouncer\Contracts\Clipboard The clipboard instance to use.
$gate Illuminate\Contracts\Auth\Access\Gate The gate instance to use.
$user Illuminate\Datbase\Eloquent\Model The user model to use for the gate.

Méthodes publiques

Méthode Description
create ( Model $user = null ) : Bouncer Create an instance of Bouncer.
withCache ( Illuminate\Contracts\Cache\Store $cache ) Set the cache instance to use for the clipboard.
withClipboard ( Silber\Bouncer\Contracts\Clipboard $clipboard ) Set the instance of the clipboard to use.
withGate ( Illuminate\Contracts\Auth\Access\Gate $gate ) Set the gate instance to use.
withUser ( Model $user ) Set the user model to use for the gate.

Méthodes protégées

Méthode Description
getCacheStore ( ) : Illuminate\Contracts\Cache\Store Get an instance of the cache store.
getClipboard ( ) : Silber\Bouncer\Contracts\Clipboard Get an instance of the clipboard.
getContainer ( ) : Illuminate\Container\Container Get the container singleton.
getGate ( ) : Illuminate\Contracts\Auth\Access\Gate Get an instance of the gate.

Method Details

create() public méthode

Create an instance of Bouncer.
public create ( Model $user = null ) : Bouncer
$user Illuminate\Database\Eloquent\Model
Résultat Bouncer

getCacheStore() protected méthode

Get an instance of the cache store.
protected getCacheStore ( ) : Illuminate\Contracts\Cache\Store
Résultat Illuminate\Contracts\Cache\Store

getClipboard() protected méthode

Get an instance of the clipboard.
protected getClipboard ( ) : Silber\Bouncer\Contracts\Clipboard
Résultat Silber\Bouncer\Contracts\Clipboard

getContainer() protected méthode

Get the container singleton.
protected getContainer ( ) : Illuminate\Container\Container
Résultat Illuminate\Container\Container

getGate() protected méthode

Get an instance of the gate.
protected getGate ( ) : Illuminate\Contracts\Auth\Access\Gate
Résultat Illuminate\Contracts\Auth\Access\Gate

withCache() public méthode

Set the cache instance to use for the clipboard.
public withCache ( Illuminate\Contracts\Cache\Store $cache )
$cache Illuminate\Contracts\Cache\Store

withClipboard() public méthode

Set the instance of the clipboard to use.
public withClipboard ( Silber\Bouncer\Contracts\Clipboard $clipboard )
$clipboard Silber\Bouncer\Contracts\Clipboard

withGate() public méthode

Set the gate instance to use.
public withGate ( Illuminate\Contracts\Auth\Access\Gate $gate )
$gate Illuminate\Contracts\Auth\Access\Gate

withUser() public méthode

Set the user model to use for the gate.
public withUser ( Model $user )
$user Illuminate\Database\Eloquent\Model

Property Details

$cache protected_oe property

The cache instance to use for the clipboard.
protected Store,Illuminate\Contracts\Cache $cache
Résultat Illuminate\Contracts\Cache\Store

$clipboard protected_oe property

The clipboard instance to use.
protected Clipboard,Silber\Bouncer\Contracts $clipboard
Résultat Silber\Bouncer\Contracts\Clipboard

$gate protected_oe property

The gate instance to use.
protected Gate,Illuminate\Contracts\Auth\Access $gate
Résultat Illuminate\Contracts\Auth\Access\Gate

$user protected_oe property

The user model to use for the gate.
protected Model,Illuminate\Datbase\Eloquent $user
Résultat Illuminate\Datbase\Eloquent\Model