PHP Class Themosis\Foundation\Application

Inheritance: extends Illuminate\Container\Container
Afficher le fichier Open project: themosis/framework Class Usage Examples

Protected Properties

Свойство Type Description
$loadedProviders array The loaded service providers.
$paths array Same as $GLOBALS['themosis.paths'].

Méthodes publiques

Méthode Description
__construct ( )
register ( ServiceProvider | string $provider, array $options = [], boolean $force = false ) : ServiceProvider Register a service provider with the application.
registerAllPaths ( array $paths ) : Application Register into the application instance, all project paths registered.
registerApplication ( ) Register the Application class into the container, so we can access it from the container itself.

Method Details

__construct() public méthode

public __construct ( )

register() public méthode

Register a service provider with the application.
public register ( ServiceProvider | string $provider, array $options = [], boolean $force = false ) : ServiceProvider
$provider ServiceProvider | string
$options array
$force boolean
Résultat ServiceProvider

registerAllPaths() public méthode

Setup this method to be called later on an 'init' hook only.
public registerAllPaths ( array $paths ) : Application
$paths array The registered paths.
Résultat Application

registerApplication() public méthode

Register the Application class into the container, so we can access it from the container itself.
public registerApplication ( )

Property Details

$loadedProviders protected_oe property

The loaded service providers.
protected array $loadedProviders
Résultat array

$paths protected_oe property

Same as $GLOBALS['themosis.paths'].
protected array $paths
Résultat array