ThemeManifest
class ThemeManifest implements ThemeList
A class which builds a manifest of all themes (which is really just a directory called "templates")
Constants
TEMPLATES_DIR |
|
Methods
Constructs a new template manifest. The manifest is not actually built or loaded from cache until needed.
No description
No description
Generate a unique cache key to avoid manifest cache collisions.
No description
Regenerates the manifest by scanning the base path.
Add a directory to the manifest
Sets the project
Details
at line 66
__construct(string $base, string $project = null, CacheFactory $cacheFactory = null)
Constructs a new template manifest. The manifest is not actually built or loaded from cache until needed.
at line 77
init(bool $includeTests = false, bool $forceRegen = false)
at line 97
string
getBase()
at line 110
string
getCacheKey(bool $includeTests = false)
Generate a unique cache key to avoid manifest cache collisions.
We compartmentalise based on the base path, the given project, and whether or not we intend to include tests.
at line 123
array
getThemes()
at line 133
regenerate(bool $includeTests = false)
Regenerates the manifest by scanning the base path.
at line 162
handleDirectory(string $basename, string $pathname, int $depth)
Add a directory to the manifest
at line 177
$this
setProject(string $project)
Sets the project