Файл
класс Файл расширяет Facade (Просмотреть исходный код)
Свойства
| статический защищённый Application|null | $app | Экземпляр приложения, на который ссылается фасад. | из Фасада |
| статический защищённый массив | $resolvedInstance | Разрешенные экземпляры объектов. | из Фасада |
| статический защищённый bool | $cached | Указывает, должен ли разрешённый экземпляр кэшироваться. | из Фасада |
Методы
| static void | resolved(Closure $callback)
Выполнить замыкание, когда фасад будет разрешен. | from Facade |
| static MockInterface | spy()
Преобразовать фасад в шпион Mockery. | from Facade |
| static MockInterface | partialMock()
Инициализировать частичный мок для фасада. | from Facade |
| static Expectation | shouldReceive()
Инициализировать ожидание мока для фасада. | from Facade |
| static Expectation | expects()
Инициализировать ожидание мока для фасада. | from Facade |
| static MockInterface | createFreshMockInstance()
Создать новый экземпляр мока для данного класса. | from Facade |
| static MockInterface | createMock()
Создать новый экземпляр мока для данного класса. | from Facade |
| static bool | isMock()
Определяет, установлен ли мок как экземпляр фасада. | from Facade |
| static string|null | getMockableClass()
Получить мокаемый класс для связанного экземпляра. | from Facade |
| static void | swap(mixed $instance)
Произвести hot-swap экземпляра, лежащего в основе фасада. | from Facade |
| static bool | isFake()
Определяет, установлен ли «фейк» в качестве экземпляра фасада. | from Facade |
| static mixed | getFacadeRoot()
Получить корневой объект за фасадом. | from Facade |
| static string | getFacadeAccessor()
Получить зарегистрированное имя компонента. | |
| static mixed | resolveFacadeInstance(string $name)
Разрешить экземпляр корневого объекта фасада из контейнера. | from Facade |
| static void | clearResolvedInstance(string $name)
Очистить разрешенный экземпляр фасада. | from Facade |
| static void | clearResolvedInstances()
Очистить все разрешенные экземпляры. | from Facade |
| static Collection | defaultAliases()
Получить алиасы по умолчанию приложения. | from Facade |
| static Application|null | getFacadeApplication()
Получить экземпляр приложения за фасадом. | from Facade |
| static void | setFacadeApplication(Application|null $app)
Установить экземпляр приложения. | from Facade |
| static mixed | __callStatic(string $method, array $args)
Обработать динамические статические вызовы к объекту. | from Facade |
| static bool | exists(string $path) Нет описания | |
| static bool | missing(string $path) Нет описания | |
| static string | get(string $path, bool $lock = false) Нет описания | |
| static array | json(string $path, int $flags, bool $lock = false) Нет описания | |
| static string | sharedGet(string $path) Нет описания | |
| static mixed | getRequire(string $path, array $data = []) Нет описания | |
| static mixed | requireOnce(string $path, array $data = []) Нет описания | |
| static LazyCollection | lines(string $path) Нет описания | |
| static string | hash(string $path, string $algorithm = 'md5') Нет описания | |
| static int|bool | put(string $path, string $contents, bool $lock = false) Нет описания | |
| static void | replace(string $path, string $content, int|null $mode = null) Нет описания | |
| static void | replaceInFile(array|string $search, array|string $replace, string $path) Нет описания | |
| static int | prepend(string $path, string $data) Нет описания | |
| static int | append(string $path, string $data, bool $lock = false) Нет описания | |
| 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 bool|null | link(string $target, string $link) Нет описания |
| static void | relativeLink(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|null | guessExtension(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 | isEmptyDirectory(string $directory, bool $ignoreDotFiles = false) Описание отсутствует | |
| static bool | isReadable(string $path) Описание отсутствует | |
| static bool | isWritable(string $path) Описание отсутствует | |
| static bool | hasSameHash(string $firstFile, string $secondFile) Описание отсутствует | |
| 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 Filesystem|mixed | when(Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null) Описание отсутствует | |
| static Filesystem|mixed | unless(Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null) Описание отсутствует | |
| static void | macro(string $name, object|callable $macro) Описание отсутствует | |
| static void | mixin(object $mixin, bool $replace = true) Описание отсутствует | |
| static bool | hasMacro(string $name) Описание отсутствует | |
| static void | flushMacros() Описание отсутствует |
Details
static void resolved(Closure $callback)
Выполнить Closure, когда фасад будет разрешен.
static MockInterface spy()
Преобразовать фасад в шпион Mockery.
static MockInterface partialMock()
Инициализировать частичный мок на фасад.
static Expectation shouldReceive()
Инициализировать ожидание мока на фасад.
static Expectation expects()
Инициализировать ожидание мока на фасад.
static protected MockInterface createFreshMockInstance()
Создать новый экземпляр мока для указанного класса.
static protected MockInterface createMock()
Создать новый экземпляр мока для указанного класса.
static protected bool isMock()
Определяет, установлен ли мок в качестве экземпляра фасада.
static protected string|null getMockableClass()
Получить класс, допускающий создание мока, для связанного экземпляра.
static void swap(mixed $instance)
Произвести горячую замену базового экземпляра за фасадом.
static protected bool isFake()
Определяет, установлен ли «фальшивый» экземпляр как фасад.
static mixed getFacadeRoot()
Получить корневый объект за фасадом.
static protected string getFacadeAccessor()
Получить зарегистрированное имя компонента.
static protected mixed resolveFacadeInstance(string $name)
Разрешить экземпляр корня фасада из контейнера.
static void clearResolvedInstance(string $name)
Очистить разрешенный экземпляр фасада.
static void clearResolvedInstances()
Очистить все разрешенные экземпляры.
static Collection defaultAliases()
Получить стандартные псевдонимы приложения.
static Application|null getFacadeApplication()
Получить экземпляр приложения за фасадом.
static void setFacadeApplication(Application|null $app)
Установить экземпляр приложения.
static mixed __callStatic(string $method, array $args)
Обработка динамических статических вызовов объекта.
static bool exists(string $path)
Нет описания
static bool missing(string $path)
Нет описания
static string get(string $path, bool $lock = false)
Нет описания
static array json(string $path, int $flags, bool $lock = false)
Нет описания
static string sharedGet(string $path)
Нет описания
static mixed getRequire(string $path, array $data = [])
Нет описания
static mixed requireOnce(string $path, array $data = [])
Нет описания
static LazyCollection lines(string $path)
Нет описания
static string hash(string $path, string $algorithm = 'md5')
Нет описания
static int|bool put(string $path, string $contents, bool $lock = false)
Нет описания
static void replace(string $path, string $content, int|null $mode = null)
Без описания
static void replaceInFile(array|string $search, array|string $replace, string $path)
Без описания
static int prepend(string $path, string $data)
Без описания
static int append(string $path, string $data, bool $lock = false)
Без описания
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 bool|null link(string $target, string $link)
Без описания
static void relativeLink(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|null guessExtension(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 isEmptyDirectory(string $directory, bool $ignoreDotFiles = false)
Без описания
static bool isReadable(string $path)
Без описания
static bool isWritable(string $path)
Без описания
static bool hasSameHash(string $firstFile, string $secondFile)
Без описания
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 Filesystem|mixed when(Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
Без описания
static Filesystem|mixed unless(Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
Без описания
static void macro(string $name, object|callable $macro)
Без описания
static void mixin(object $mixin, bool $replace = true)
Без описания
static bool hasMacro(string $name)
Без описания
static void flushMacros()
Без описания
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Support/Facades/File.html