AssetsAutoloadGenerator
class AssetsAutoloadGenerator extends AbstractAssetsAutoloadGenerator
Methods
Reads the assets database from JSON file
Writes the assets database in a JSON file
Set the current assets database
Set the generator called at object destruction
Add a new installed package in the Assets database
Remove an uninstalled package from the Assets database
This must generate the Assets database JSON file
Details
in AbstractAssetsAutoloadGenerator at line 62
static object
getInstance(AssetsInstallerInterface $installer = null)
Get a singleton instance
in AbstractAssetsAutoloadGenerator at line 96
void
__destruct()
Load the assets database file generation
in AbstractAssetsAutoloadGenerator at line 104
AssetsInstallerInterface
getAssetsInstaller()
in AbstractAssetsAutoloadGenerator at line 114
false|string
readJsonDatabase()
Reads the assets database from JSON file
in AbstractAssetsAutoloadGenerator at line 131
false|string
writeJsonDatabase(array $full_db)
Writes the assets database in a JSON file
in AbstractAssetsAutoloadGenerator at line 161
static void
setRegistry(array $assets_db, AssetsInstallerInterface $installer = null)
Set the current assets database
in AbstractAssetsAutoloadGenerator at line 173
static array
getRegistry(AssetsInstallerInterface $installer = null)
Get the current assets database
in AbstractAssetsAutoloadGenerator at line 185
static array
setGenerator(callable $callable)
Set the generator called at object destruction
in AbstractAssetsAutoloadGenerator at line 200
static void
registerPackage(PackageInterface $package, string $target, AssetsInstallerInterface $installer = null)
Add a new installed package in the Assets database
in AbstractAssetsAutoloadGenerator at line 213
static void
unregisterPackage(PackageInterface $package, AssetsInstallerInterface $installer = null)
Remove an uninstalled package from the Assets database
at line 40
generate()
This must generate the Assets database JSON file