abstract class Package

Package.

Properties

protected Container $container Container.
protected string $packageName Package name.
protected string $path Package path.
protected string $fileNamespace File namespace.
protected string $classNamespace Class namespace.
protected array $commands Commands.

Methods

__construct(Container $container)

Constructor.

string
getName()

Returns the package name.

string
getFileNamespace()

Returns the package namespace.

string
getClassNamespace(bool $prefix = false)

Returns the class namespace.

string
getPath()

Returns package path.

string
getConfigPath()

Returns the path to the package configuration files.

string
getI18nPath()

Returns the path to the package i18n strings.

string
getViewPath()

Returns the path to the package views.

array
getCommands()

Returns the package commands.

bootstrap()

Gets executed at the end of the package boot sequence.

boot()

Boots the package.

Details

at line 80
__construct(Container $container)

Constructor.

Parameters

Container $container Container

at line 90
string getName()

Returns the package name.

Return Value

string

at line 100
string getFileNamespace()

Returns the package namespace.

Return Value

string

at line 116
string getClassNamespace(bool $prefix = false)

Returns the class namespace.

Parameters

bool $prefix Prefix the namespace with a slash?

Return Value

string

at line 131
string getPath()

Returns package path.

Return Value

string

at line 146
string getConfigPath()

Returns the path to the package configuration files.

Return Value

string

at line 156
string getI18nPath()

Returns the path to the package i18n strings.

Return Value

string

at line 166
string getViewPath()

Returns the path to the package views.

Return Value

string

at line 176
array getCommands()

Returns the package commands.

Return Value

array

at line 184
protected bootstrap()

Gets executed at the end of the package boot sequence.

at line 192
boot()

Boots the package.