ModuleManager
extends PackageManager
in package
WARNING: In this time, it saves data to Redis/file, it's not good performance as it should be.
ModuleManager should be improved:
- Prefer Object Cache than network base caching may save 10ms/req.
- Flush cache content based on .env or something else.
- Do not cache on Dev mode.
- Prefer export than use as Modules:: facade instead of calling in the instance.
Class ModuleManager
Tags
Table of Contents
Methods
- array() : void
- array() : void
- checkActive() : bool
- discoverSettings() : array<string|int, mixed>
- exportToFilesystem() : string
- getAlias() : string
- getAliasFor() : string
- getAliasForEntityType() : string
- getAssetPath() : string
- getBasePath() : string|null
- getByAlias() : string
- getComposerJson() : string|null
- getComposerJsonPath() : string|null
- getConfig() : array<string|int, mixed>
- getConfigPath() : string
- getEvents() : array<string|int, mixed>
- getFrontendAlias() : string
- getInfo() : array<string|int, mixed>
- getListener() : BasePackageSettingListener|null
- getListenerClass() : string
- getMasterSeederClasses() : array<string|int, string>
- getMigrationPath() : string
- getMigrations() : array<string|int, mixed>
- getName() : string
- getNamespace() : string
- getNameStudly() : string
- getPackageNames() : array<string|int, string>
- getPath() : string
- getResourceNames() : array<string|int, string>
- getSeeder() : string|null
- getTitle() : string
- instance() : PackageManagerImpl
- isCore() : bool
- normalizePackageName() : string
- pluck() : array<string|int, mixed>
- readFile() : array<string|int, mixed>|null
- registerApplicationSchedule() : void
- updateEnvironmentFile() : void
- with() : void
- withActivePackages() : void
- getFacadeAccessor() : mixed
Methods
array()
public
static array() : void
<string, string> getDatabaseMigrationsFrom()
array()
public
static array() : void
checkActive()
public
static checkActive(string $packageName) : bool
Parameters
- $packageName : string
Return values
booldiscoverSettings()
public
static discoverSettings(string $settingName) : array<string|int, mixed>
Parameters
- $settingName : string
Return values
array<string|int, mixed>exportToFilesystem()
public
static exportToFilesystem(string $package, string $path, array<string|int, mixed> $data) : string
Parameters
- $package : string
- $path : string
- $data : array<string|int, mixed>
Return values
stringgetAlias()
public
static getAlias(string $packageName) : string
Parameters
- $packageName : string
Return values
stringgetAliasFor()
public
static getAliasFor(string $packageName, string|null $for = null) : string
Parameters
- $packageName : string
- $for = null : string|null
Return values
stringgetAliasForEntityType()
public
static getAliasForEntityType(string $entityType) : string
Parameters
- $entityType : string
Return values
stringgetAssetPath()
public
static getAssetPath(string $packageName) : string
Parameters
- $packageName : string
Return values
stringgetBasePath()
public
static getBasePath(string $packageName) : string|null
Parameters
- $packageName : string
Return values
string|nullgetByAlias()
public
static getByAlias(string $aliasName) : string
Parameters
- $aliasName : string
Return values
stringgetComposerJson()
public
static getComposerJson(string $packageName) : string|null
Parameters
- $packageName : string
Return values
string|nullgetComposerJsonPath()
public
static getComposerJsonPath(string $packageName) : string|null
Parameters
- $packageName : string
Return values
string|nullgetConfig()
public
static getConfig(string $packageName) : array<string|int, mixed>
Parameters
- $packageName : string
Return values
array<string|int, mixed>getConfigPath()
public
static getConfigPath(string $packageName) : string
Parameters
- $packageName : string
Return values
stringgetEvents()
public
static getEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>getFrontendAlias()
public
static getFrontendAlias(string $packageName) : string
Parameters
- $packageName : string
Return values
stringgetInfo()
public
static getInfo(string $packageName) : array<string|int, mixed>
Parameters
- $packageName : string
Return values
array<string|int, mixed>getListener()
public
static getListener(string $packageName) : BasePackageSettingListener|null
Parameters
- $packageName : string
Return values
BasePackageSettingListener|nullgetListenerClass()
public
static getListenerClass(string $packageName) : string
Parameters
- $packageName : string
Return values
stringgetMasterSeederClasses()
public
static getMasterSeederClasses(string $packageName) : array<string|int, string>
Parameters
- $packageName : string
Return values
array<string|int, string>getMigrationPath()
public
static getMigrationPath(string $packageName) : string
Parameters
- $packageName : string
Return values
stringgetMigrations()
public
static getMigrations(string $packageName) : array<string|int, mixed>
Parameters
- $packageName : string
Return values
array<string|int, mixed>getName()
public
static getName(string $packageName) : string
Parameters
- $packageName : string
Return values
stringgetNamespace()
public
static getNamespace(string $packageName) : string
Parameters
- $packageName : string
Return values
stringgetNameStudly()
public
static getNameStudly(string $packageName) : string
Parameters
- $packageName : string
Return values
stringgetPackageNames()
public
static getPackageNames(string $packageName) : array<string|int, string>
Parameters
- $packageName : string
Return values
array<string|int, string>getPath()
public
static getPath(string $packageName) : string
Parameters
- $packageName : string
Return values
stringgetResourceNames()
public
static getResourceNames(string $packageName) : array<string|int, string>
Parameters
- $packageName : string
Return values
array<string|int, string>getSeeder()
public
static getSeeder(string $packageName) : string|null
Parameters
- $packageName : string
Return values
string|nullgetTitle()
public
static getTitle(string $packageName) : string
Parameters
- $packageName : string
Return values
stringinstance()
public
static instance() : PackageManagerImpl
Return values
PackageManagerImplisCore()
public
static isCore(string $packageName) : bool
Parameters
- $packageName : string
Return values
boolnormalizePackageName()
public
static normalizePackageName(string $vendorName, string $appName) : string
Parameters
- $vendorName : string
- $appName : string
Return values
stringpluck()
public
static pluck() : array<string|int, mixed>
Return values
array<string|int, mixed>readFile()
public
static readFile(string $package, string $filename) : array<string|int, mixed>|null
Parameters
- $package : string
- $filename : string
Return values
array<string|int, mixed>|nullregisterApplicationSchedule()
public
static registerApplicationSchedule() : void
updateEnvironmentFile()
public
static updateEnvironmentFile(array<string|int, mixed> $values) : void
Parameters
- $values : array<string|int, mixed>
with()
public
static with(Closure $callback) : void
Parameters
- $callback : Closure
withActivePackages()
public
static withActivePackages(Closure $callback) : void
Parameters
- $callback : Closure
getFacadeAccessor()
protected
static getFacadeAccessor() : mixed