docs/validators/SymbolicLink.md
SymbolicLink()Validates if the given input is a symbolic link.
v::symbolicLink()->assert('/path/to/symbolic-link');
// Validation passes successfully
v::symbolicLink()->assert(new SplFileInfo('/path/to/file'));
// → `SplFileInfo { __toString() => "/path/to/file" }` must be an accessible existing symbolic link
v::symbolicLink()->assert(new SplFileObject('/path/to/file'));
// → `SplFileObject { current() => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque nec enim vitae ve ... }` must be an accessible existing symbolic link
SymbolicLink::TEMPLATE_STANDARD| Mode | Template |
|---|---|
default | {{subject}} must be an accessible existing symbolic link |
inverted | {{subject}} must not be an accessible existing symbolic link |
| Placeholder | Description |
|---|---|
subject | The validated input or the custom validator name (if specified). |
| Version | Description |
|---|---|
| 3.0.0 | Templates changed |
| 0.5.0 | Created |