Файл
класс Файл расширяет 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, когда фасад будет решен.
static MockInterface spy()
Преобразовать фасад в шпион Mockery.
static MockInterface partialMock()
Инициализировать частичный макет для фасада.
static Expectation shouldReceive()
Инициализировать ожидание макета для фасада.
static protected MockInterface createFreshMockInstance()
Создать новый экземпляр макета для данного класса.
static protected MockInterface createMock()
Создать новый экземпляр макета для данного класса.
static protected bool isMock()
Определяет, установлен ли макет в качестве экземпляра фасада.
static protected string|null getMockableClass()
Получить класс, подлежащий имитации, для связанного экземпляра.
static void swap(mixed $instance)
Обменять базовый экземпляр за фасадом.
static mixed getFacadeRoot()
Получить корневый объект за фасадом.
static protected string getFacadeAccessor()
Получить зарегистрированное имя компонента.
static protected mixed resolveFacadeInstance(object|string $name)
Разрешить корневой экземпляр фасада из контейнера.
static void clearResolvedInstance(string $name)
Очистить решенный экземпляр фасада.
static void clearResolvedInstances()
Очистить все решенные экземпляры.
static Application getFacadeApplication()
Получить экземпляр приложения за фасадом.
static void setFacadeApplication(Application $app)
Установить экземпляр приложения.
static mixed __callStatic(string $method, array $args)
Обработка динамических статических вызовов объекта.
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)
Без описания
© 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