PHP Class Themosis, framework

Show file Open project: themosis/framework Class Usage Examples

Public Properties

Property Type Description
$container Themosis\Foundation\Application The service container.

Protected Properties

Property Type Description
$instance Themosis Themosis instance.

Public Methods

Method Description
adminEnqueueScripts ( ) Enqueue Admin scripts.
adminHead ( ) Output a global JS object in the tag for the admin.
instance ( ) : Themosis Retrieve Themosis class instance.
setRouter ( ) Hook into front-end routing.

Protected Methods

Method Description
autoload ( ) Check for the composer autoload file.
bootstrap ( ) Bootstrap the core plugin.
registerProviders ( ) Register core framework service providers.
setup ( ) Setup core framework parameters.

Private Methods

Method Description
__construct ( )

Method Details

adminEnqueueScripts() public method

Enqueue Admin scripts.
public adminEnqueueScripts ( )

adminHead() public method

Allow developers to add JS data for their project in the admin area only.
public adminHead ( )

autoload() protected method

Check for the composer autoload file.
protected autoload ( )

bootstrap() protected method

Bootstrap the core plugin.
protected bootstrap ( )

instance() public static method

Retrieve Themosis class instance.
public static instance ( ) : Themosis
return Themosis

registerProviders() protected method

Register core framework service providers.
protected registerProviders ( )

setRouter() public method

Setup the router API to be executed before theme default templates.
public setRouter ( )

setup() protected method

At this moment, all activated plugins have been loaded. Each plugin has its service providers registered.
protected setup ( )

Property Details

$container public property

The service container.
public Application,Themosis\Foundation $container
return Themosis\Foundation\Application

$instance protected static property

Themosis instance.
protected static Themosis $instance
return Themosis