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 78
__construct(Container $container)

Constructor.

Parameters

Container $container Container

at line 88
string getName()

Returns the package name.

Return Value

string

at line 98
string getFileNamespace()

Returns the package namespace.

Return Value

string

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

Returns the class namespace.

Parameters

bool $prefix Prefix the namespace with a slash?

Return Value

string

at line 129
string getPath()

Returns package path.

Return Value

string

at line 144
string getConfigPath()

Returns the path to the package configuration files.

Return Value

string

at line 154
string getI18nPath()

Returns the path to the package i18n strings.

Return Value

string

at line 164
string getViewPath()

Returns the path to the package views.

Return Value

string

at line 174
array getCommands()

Returns the package commands.

Return Value

array

at line 182
protected bootstrap()

Gets executed at the end of the package boot sequence.

at line 190
boot()

Boots the package.