PHP Class Themosis\Foundation\Application

Inheritance: extends Illuminate\Container\Container
Mostrar archivo Open project: themosis/framework Class Usage Examples

Protected Properties

Property Type Description
$loadedProviders array The loaded service providers.
$paths array Same as $GLOBALS['themosis.paths'].

Public Methods

Method 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 method

public __construct ( )

register() public method

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
return ServiceProvider

registerAllPaths() public method

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

registerApplication() public method

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
return array

$paths protected_oe property

Same as $GLOBALS['themosis.paths'].
protected array $paths
return array