Свойство | Тип | Описание | |
---|---|---|---|
$config | null | ||
$configLoader | null | |
Configuration loader. | |
$name | The Module name. | ||
$reflected | ReflectionObject | ||
$routes | null | ||
$services | null |
Метод | Описание | |
---|---|---|
getCommandsPath ( ) : string | Returns the default location of where Command classes are registered. | |
getConfig ( ) : array | Traversable | Returns configuration to merge with application configuration. | |
getName ( ) : string | Returns the module name. Defaults to the module namespace stripped of backslashes. | |
getNamespace ( ) : string | Gets the Module namespace. | |
getPath ( ) : string | Gets the Module directory path. | |
getService ( string $serviceName ) : mixed | Get a particular service. | |
getServices ( ) : array | Get the services. | |
loadConfig ( string $resource, null | string $type = null ) : array | Loads a configuration file (PHP, YAML) or PHP array. | |
mergeConfig ( mixed $resources ) : array | Loads and merges the configuration. | |
registerCommands ( PPI\Framework\Console\Application $application ) | Finds and registers Commands. | |
setName ( string $Name ) | Set the module name. | |
setServices ( string $services ) : Module | Set services for our module. |
Метод | Описание | |
---|---|---|
getConfigLoader ( ) : |
Returns a ConfigLoader instance. | |
loadAuraRoutes ( string $path ) : Aura\Router\Router | ||
loadFastRouteRoutes ( $path ) : PPI\FastRoute\Wrapper\FastRouteWrapper | ||
loadLaravelRoutes ( string $path ) : Aura\Router\Router | ||
loadSymfonyRoutes ( string $path ) : |
Load up our routes. | |
loadYamlConfig ( string $path ) : array | Load up our config results from the specific yaml file. | |
loadYamlRoutes ( string $path ) : |
Load up our routes. |
public getCommandsPath ( ) : string | ||
Результат | string |
public getConfig ( ) : array | Traversable | ||
Результат | array | Traversable |
protected getConfigLoader ( ) : |
||
Результат |
public getNamespace ( ) : string | ||
Результат | string | The Module namespace |
public getService ( string $serviceName ) : mixed | ||
$serviceName | string | |
Результат | mixed |
protected loadAuraRoutes ( string $path ) : Aura\Router\Router | ||
$path | string | |
Результат | Aura\Router\Router |
protected loadFastRouteRoutes ( $path ) : PPI\FastRoute\Wrapper\FastRouteWrapper | ||
$path | ||
Результат | PPI\FastRoute\Wrapper\FastRouteWrapper |
protected loadLaravelRoutes ( string $path ) : Aura\Router\Router | ||
$path | string | |
Результат | Aura\Router\Router |
protected loadSymfonyRoutes ( string $path ) : |
||
$path | string | |
Результат |
protected loadYamlConfig ( string $path ) : array | ||
$path | string | |
Результат | array |
protected loadYamlRoutes ( string $path ) : |
||
$path | string | |
Результат |
public mergeConfig ( mixed $resources ) : array | ||
$resources | mixed | |
Результат | array |
public registerCommands ( PPI\Framework\Console\Application $application ) | ||
$application | PPI\Framework\Console\Application | An Application instance |
public setServices ( string $services ) : Module | ||
$services | string | |
Результат | Module |
protected null|ConfigLoader,PPI\Framework\Config $configLoader | ||
Результат | null | |