Extending / Filesystem Layer / Overview of Bolt's Filesystem
Note: You are currently reading the documentation for Bolt 3.7. Looking for the documentation for Bolt 5.2 instead?
Bolt uses a visualised filesystem layer, built using Flysystem.
Each filesystem is registered with the Filesystem Manager on what are referred to as a "mount point". These mount points include:
cache
— User's cache mount pointconfig
— User's config mount pointextensions
— User's extension mount pointextensions_config
— User's extension config mount pointfiles
— User's files mount pointthemes
— User's extension mount pointweb
— User's web root mount point
Requesting a named, valid, mount point from the Filesystem Manager will return a filesystem.
Inside each filesystem are a group of files and directories, that can be created, read, updated, and deleted, via the mount point's filesystem object.
So the interaction with files & directories generally follows the code path
Filesystem Manager service -> \Bolt\Filesystem\FilesystemInterface
mount
point object -> \Bolt\Filesystem\Handler\FileInterface
or
\Bolt\Filesystem\Handler\DirectoryInterface
object
For more details on using these, refer to the following sections:
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.