BeforeFileSystemSetupEvent
extends Event
in package
Event triggered before the file system is set up.
Tags
Table of Contents
Properties
- $storageWrappers : array<IStorage>, array{callable: callable, priority: int<0, 100>}>
- $user : IUser
Methods
- __construct() : mixed
- Compatibility constructor
- addStorageWrapper() : void
- Add a storage wrapper to the file system. This allows apps to inject storage wrappers for every mount.
- getStorageWrappers() : array<IStorage>, array{callable: callable, priority: int<0, 100>}>
- Get the storage wrappers.
- getUser() : IUser
- isPropagationStopped() : bool
- {@inheritDoc}
- stopPropagation() : void
- Stops the propagation of the event to further event listeners
Properties
$storageWrappers
private
array<IStorage>, array{callable: callable, priority: int<0, 100>}>
$storageWrappers
= []
$user read-only
private
IUser
$user
Methods
__construct()
Compatibility constructor
public
__construct(IUser $user) : mixed
Parameters
- $user : IUser
Tags
addStorageWrapper()
Add a storage wrapper to the file system. This allows apps to inject storage wrappers for every mount.
public
addStorageWrapper(IStorage> $name, callable(string $mountPoint, IStorage $storage): IStorage $wrapper[, int<0, 100> $priority = 50 ]) : void
Parameters
- $name : IStorage>
-
The identifier of the wrapper.
- $wrapper : callable(string $mountPoint, IStorage $storage): IStorage
- $priority : int<0, 100> = 50
Tags
getStorageWrappers()
Get the storage wrappers.
public
getStorageWrappers() : array<IStorage>, array{callable: callable, priority: int<0, 100>}>
Tags
Return values
array<IStorage>, array{callable: callable, priority: int<0, 100>}>getUser()
public
getUser() : IUser
Tags
Return values
IUserisPropagationStopped()
{@inheritDoc}
public
isPropagationStopped() : bool
Tags
Attributes
- #[Override]
Return values
boolstopPropagation()
Stops the propagation of the event to further event listeners
public
stopPropagation() : void