ModulePackage
class ModulePackage extends Package implements PackageInterface
Module Package class
Traits
Constants
SERVICE |
|
PACKAGE |
|
MIDDLEWARE |
|
TYPE_NAME |
Module type |
Properties
protected CollectionInterface | $properties | Package properties | from Package |
protected PackageRegistryInterface|null | $packageRegistry | Package Registry Interface | from Package |
protected string | $path | Package root path | from Package |
Methods
Constructor
Return true if package is installed
Get module package properties
Install module
Uninstall module
Enable module
Disable module
Get module class
Get type id
Get module console commands path
Details
in Package at line 53
__construct(string $path, CollectionInterface $properties, PackageRegistryInterface|null $packageRegistry = null)
Constructor
in Drivers at line 24
array
getDrivers()
Get module console commands class list.
at line 85
bool
isInstalled()
Return true if package is installed
in Package at line 86
PackageValidator
validator()
Create package validator
in Package at line 96
string
getPath()
Get package root path
in Package at line 106
string
getVersion()
Get Package version
in Package at line 116
array|null
getLanguages()
Get suppported languages
in Package at line 126
bool
setPrimary()
Set package as primary
in Package at line 136
string|null
getType()
Get package type
in Package at line 147
mixed
getInstalOrder(mixed|null $default = null)
Get install order
in Package at line 157
string
getName()
Return package name
at line 58
Collection
getProperties(bool $full = false)
Get module package properties
in Package at line 178
CollectionInterface
getRequire()
Get require property
in Package at line 192
mixed
getProperty(string $name, mixed $default = null)
Get package property
in Package at line 202
bool
validate()
Validate package properties
at line 97
bool
install(bool|null $primary = null)
Install module
in Package at line 223
bool
postInstall()
Run post install actions
at line 187
bool
unInstall()
Uninstall module
at line 199
bool
enable()
Enable module
at line 209
bool
disable()
Disable module
in Package at line 263
bool
savePackageProperties()
Save package properties file
in Drivers at line 52
string
getDriversPath()
Get module drivers path
in Jobs at line 26
string
getJobsPath()
Get extension jobs path
in Jobs at line 36
array
getPackageJobs()
Get extension jobs
in ConsoleCommands at line 24
array
getConsoleCommands()
Get package console commands
at line 47
string
getClass()
Get module class
at line 220
static integer
getTypeId(string $typeName)
Get type id
at line 230
string
getConsolePath()
Get module console commands path