PHP Класс Silber\Bouncer\Factory

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

create() публичный Метод

Create an instance of Bouncer.
public create ( Model $user = null ) : Bouncer
$user Illuminate\Database\Eloquent\Model
Результат Bouncer

getCacheStore() защищенный Метод

Get an instance of the cache store.
protected getCacheStore ( ) : Illuminate\Contracts\Cache\Store
Результат Illuminate\Contracts\Cache\Store

getClipboard() защищенный Метод

Get an instance of the clipboard.
protected getClipboard ( ) : Silber\Bouncer\Contracts\Clipboard
Результат Silber\Bouncer\Contracts\Clipboard

getContainer() защищенный Метод

Get the container singleton.
protected getContainer ( ) : Illuminate\Container\Container
Результат Illuminate\Container\Container

getGate() защищенный Метод

Get an instance of the gate.
protected getGate ( ) : Illuminate\Contracts\Auth\Access\Gate
Результат Illuminate\Contracts\Auth\Access\Gate

withCache() публичный Метод

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

withClipboard() публичный Метод

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

withGate() публичный Метод

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

withUser() публичный Метод

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

Описание свойств

$cache защищенное свойство

The cache instance to use for the clipboard.
protected Store,Illuminate\Contracts\Cache $cache
Результат Illuminate\Contracts\Cache\Store

$clipboard защищенное свойство

The clipboard instance to use.
protected Clipboard,Silber\Bouncer\Contracts $clipboard
Результат Silber\Bouncer\Contracts\Clipboard

$gate защищенное свойство

The gate instance to use.
protected Gate,Illuminate\Contracts\Auth\Access $gate
Результат Illuminate\Contracts\Auth\Access\Gate

$user защищенное свойство

The user model to use for the gate.
protected Model,Illuminate\Datbase\Eloquent $user
Результат Illuminate\Datbase\Eloquent\Model