Spec-Zone.ru › Laravel 6

Файл

класс Файл расширяет Facade (Просмотреть исходный код)

Свойства

статический защищенный Application $app

Экземпляр приложения, к которому осуществляется фасадный доступ.

из Фасада
статический защищенный массив $resolvedInstance

Разрешенные экземпляры объектов.

из Фасада

Методы

static void resolved(Closure $callback)

Выполнить замыкание, когда фасад будет разрешен.

from Facade
static MockInterface spy()

Преобразовать фасад в шпиона Mockery.

from Facade
static MockInterface partialMock()

Инициировать частичный mock для фасада.

from Facade
static Expectation shouldReceive()

Инициировать ожидание mock для фасада.

from Facade
static MockInterface createFreshMockInstance()

Создать свежий экземпляр mock для данного класса.

from Facade
static MockInterface createMock()

Создать свежий экземпляр mock для данного класса.

from Facade
static bool isMock()

Определяет, установлен ли mock как экземпляр фасада.

from Facade
static string|null getMockableClass()

Получить mockable класс для связанного экземпляра.

from Facade
static void swap(mixed $instance)

Произвести горячую замену основного экземпляра за фасадом.

from Facade
static mixed getFacadeRoot()

Получить корневый объект за фасадом.

from Facade
static string getFacadeAccessor()

Получить зарегистрированное имя компонента.

static mixed resolveFacadeInstance(object|string $name)

Разрешить корневой экземпляр фасада из контейнера.

from Facade
static void clearResolvedInstance(string $name)

Очистить разрешенный экземпляр фасада.

from Facade
static void clearResolvedInstances()

Очистить все разрешенные экземпляры.

from Facade
static Application getFacadeApplication()

Получить экземпляр приложения за фасадом.

from Facade
static void setFacadeApplication(Application $app)

Установить экземпляр приложения.

from Facade
static mixed __callStatic(string $method, array $args)

Обработать динамические статические вызовы к объекту.

from Facade
static bool exists(string $path)

Без описания

static string get(string $path, bool $lock = false)

Без описания

static string sharedGet(string $path)

Без описания

static mixed getRequire(string $path)

Без описания

static mixed requireOnce(string $file)

Без описания

static string hash(string $path)

Без описания

static int|bool put(string $path, string $contents, bool $lock = false)

Без описания

static void replace(string $path, string $content)

Без описания

static int prepend(string $path, string $data)

Без описания

static int append(string $path, string $data)

Без описания

static mixed chmod(string $path, int|null $mode = null)

Без описания

static bool delete(string|array $paths)

Без описания

static bool move(string $path, string $target)

Без описания

static bool copy(string $path, string $target)

Без описания

static void link(string $target, string $link)

Без описания

static string name(string $path)

Без описания

static string basename(string $path)

Без описания

static string dirname(string $path)

Без описания

static string extension(string $path)

Без описания

static string type(string $path)

Без описания

static string|false mimeType(string $path)

Без описания

static int size(string $path)

Без описания

static int lastModified(string $path)

Без описания

static bool isDirectory(string $directory)

Без описания

static bool isReadable(string $path)

Без описания

static bool isWritable(string $path)

Нет описания

static bool isFile(string $file)

Нет описания

static array glob(string $pattern, int $flags)

Нет описания

static SplFileInfo[] files(string $directory, bool $hidden = false)

Нет описания

static SplFileInfo[] allFiles(string $directory, bool $hidden = false)

Нет описания

static array directories(string $directory)

Нет описания

static void ensureDirectoryExists(string $path, int $mode = 0755, bool $recursive = true)

Нет описания

static bool makeDirectory(string $path, int $mode = 0755, bool $recursive = false, bool $force = false)

Нет описания

static bool moveDirectory(string $from, string $to, bool $overwrite = false)

Нет описания

static bool copyDirectory(string $directory, string $destination, int|null $options = null)

Нет описания

static bool deleteDirectory(string $directory, bool $preserve = false)

Нет описания

static bool deleteDirectories(string $directory)

Нет описания

static bool cleanDirectory(string $directory)

Нет описания

Подробности

static void resolved(Closure $callback)

Выполнить Closure, когда фасад будет решен.

Параметры

Closure $callback

Возвращаемое значение

void

static MockInterface spy()

Преобразовать фасад в шпион Mockery.

Возвращаемое значение

MockInterface

static MockInterface partialMock()

Инициализировать частичный макет для фасада.

Возвращаемое значение

MockInterface

static Expectation shouldReceive()

Инициализировать ожидание макета для фасада.

Возвращаемое значение

Expectation

static protected MockInterface createFreshMockInstance()

Создать новый экземпляр макета для данного класса.

Возвращаемое значение

MockInterface

static protected MockInterface createMock()

Создать новый экземпляр макета для данного класса.

Возвращаемое значение

MockInterface

static protected bool isMock()

Определяет, установлен ли макет в качестве экземпляра фасада.

Возвращаемое значение

bool

static protected string|null getMockableClass()

Получить класс, подлежащий имитации, для связанного экземпляра.

Возвращаемое значение

string|null

static void swap(mixed $instance)

Обменять базовый экземпляр за фасадом.

Параметры

mixed $instance

Возвращаемое значение

void

static mixed getFacadeRoot()

Получить корневый объект за фасадом.

Возвращаемое значение

mixed

static protected string getFacadeAccessor()

Получить зарегистрированное имя компонента.

Возвращаемое значение

string

static protected mixed resolveFacadeInstance(object|string $name)

Разрешить корневой экземпляр фасада из контейнера.

Параметры

object|string $name

Возвращаемое значение

mixed

static void clearResolvedInstance(string $name)

Очистить решенный экземпляр фасада.

Параметры

string $name

Возвращаемое значение

void

static void clearResolvedInstances()

Очистить все решенные экземпляры.

Возвращаемое значение

void

static Application getFacadeApplication()

Получить экземпляр приложения за фасадом.

Возвращаемое значение

Application

static void setFacadeApplication(Application $app)

Установить экземпляр приложения.

Параметры

Application $app

Возвращаемое значение

void

static mixed __callStatic(string $method, array $args)

Обработка динамических статических вызовов объекта.

Параметры

string $method
array $args

Возвращаемое значение

mixed

Исключения

RuntimeException

static bool exists(string $path)

Без описания

Параметры

string $path

Значение возврата

bool

static string get(string $path, bool $lock = false)

Без описания

Параметры

string $path
bool $lock

Значение возврата

string

static string sharedGet(string $path)

Без описания

Параметры

string $path

Значение возврата

string

static mixed getRequire(string $path)

Без описания

Параметры

string $path

Значение возврата

mixed

static mixed requireOnce(string $file)

Без описания

Параметры

string $file

Значение возврата

mixed

static string hash(string $path)

Без описания

Параметры

string $path

Значение возврата

string

static int|bool put(string $path, string $contents, bool $lock = false)

Без описания

Параметры

string $path
string $contents
bool $lock

Значение возврата

int|bool

static void replace(string $path, string $content)

Без описания

Параметры

string $path
string $content

Значение возврата

void

static int prepend(string $path, string $data)

Без описания

Параметры

string $path
string $data

Значение возврата

int

static int append(string $path, string $data)

Без описания

Параметры

string $path
string $data

Значение возврата

int

static mixed chmod(string $path, int|null $mode = null)

Без описания

Параметры

string $path
int|null $mode

Значение возврата

mixed

static bool delete(string|array $paths)

Без описания

Параметры

string|array $paths

Значение возврата

bool

static bool move(string $path, string $target)

Без описания

Параметры

string $path
string $target

Значение возврата

bool

static bool copy(string $path, string $target)

Без описания

Параметры

string $path
string $target

Значение возврата

bool

static void link(string $target, string $link)

Без описания

Параметры

string $target
string $link

Значение возврата

void

static string name(string $path)

Без описания

Параметры

string $path

Значение возврата

string

static string basename(string $path)

Без описания

Параметры

string $path

Значение возврата

string

static string dirname(string $path)

Без описания

Параметры

string $path

Значение возврата

string

static string extension(string $path)

Без описания

Параметры

string $path

Значение возврата

string

static string type(string $path)

Без описания

Параметры

string $path

Значение возврата

string

static string|false mimeType(string $path)

Без описания

Параметры

string $path

Значение возврата

string|false

static int size(string $path)

Без описания

Параметры

string $path

Значение возврата

int

static int lastModified(string $path)

Без описания

Параметры

string $path

Значение возврата

int

static bool isDirectory(string $directory)

Без описания

Параметры

string $directory

Значение возврата

bool

static bool isReadable(string $path)

Без описания

Параметры

string $path

Значение возврата

bool

static bool isWritable(string $path)

Без описания

Параметры

string $path

Значение возврата

bool

static bool isFile(string $file)

Без описания

Параметры

string $file

Значение возврата

bool

static array glob(string $pattern, int $flags)

Без описания

Параметры

string $pattern
int $flags

Значение возврата

array

static SplFileInfo[] files(string $directory, bool $hidden = false)

Без описания

Параметры

string $directory
bool $hidden

Значение возврата

SplFileInfo[]

static SplFileInfo[] allFiles(string $directory, bool $hidden = false)

Без описания

Параметры

string $directory
bool $hidden

Значение возврата

SplFileInfo[]

static array directories(string $directory)

Без описания

Параметры

string $directory

Значение возврата

array

static void ensureDirectoryExists(string $path, int $mode = 0755, bool $recursive = true)

Без описания

Параметры

string $path
int $mode
bool $recursive

Значение возврата

void

static bool makeDirectory(string $path, int $mode = 0755, bool $recursive = false, bool $force = false)

Без описания

Параметры

string $path
int $mode
bool $recursive
bool $force

Значение возврата

bool

static bool moveDirectory(string $from, string $to, bool $overwrite = false)

Без описания

Параметры

string $from
string $to
bool $overwrite

Значение возврата

bool

static bool copyDirectory(string $directory, string $destination, int|null $options = null)

Без описания

Параметры

string $directory
string $destination
int|null $options

Значение возврата

bool

static bool deleteDirectory(string $directory, bool $preserve = false)

Без описания

Параметры

string $directory
bool $preserve

Значение возврата

bool

static bool deleteDirectories(string $directory)

Без описания

Параметры

string $directory

Значение возврата

bool

static bool cleanDirectory(string $directory)

Без описания

Параметры

string $directory

Значение возврата

bool

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/6.x/Illuminate/Support/Facades/File.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API