PHP Class Inpsyde\MultilingualPress\MultilingualPress

Since: 3.0.0
Show file Open project: inpsyde/multilingual-press Class Usage Examples

Public Methods

Method Description
__construct ( Inpsyde\MultilingualPress\Service\Container $container ) Constructor. Sets up the properties.
bootstrap ( ) : boolean Bootstraps MultilingualPress.
register_service_provider ( Inpsyde\MultilingualPress\Service\ServiceProvider $provider ) : static Registers the given service provider.
resolve ( string $name ) : mixed Resolve a shared value or factory callback from the container.

Private Methods

Method Description
bootstrap_admin ( ) : void Wires up all admin-specific things.
bootstrap_front_end ( ) : void Wires up all front-end-specific things.
bootstrap_service_providers ( ) : void Bootstraps all registered bootstrappable service providers.
check_installation ( ) : boolean Checks (and adapts) the current MultilingualPress installation.
needs_modules ( ) : boolean Checks if the current request needs MultilingualPress to register any modules.
register_modules ( ) : void Registers all modules.
register_sites_list_table_columns ( ) : void Registers columns for the list table on the Sites page in the Network Admin.

Method Details

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( Inpsyde\MultilingualPress\Service\Container $container )
$container Inpsyde\MultilingualPress\Service\Container Container object.

bootstrap() public method

Bootstraps MultilingualPress.
Since: 3.0.0
public bootstrap ( ) : boolean
return boolean Whether or not MultilingualPress was bootstrapped successfully.

register_service_provider() public method

Registers the given service provider.
Since: 3.0.0
public register_service_provider ( Inpsyde\MultilingualPress\Service\ServiceProvider $provider ) : static
$provider Inpsyde\MultilingualPress\Service\ServiceProvider Service provider object.
return static MultilingualPress instance.

resolve() public static method

Resolve a shared value or factory callback from the container.
Since: 3.0.0
public static resolve ( string $name ) : mixed
$name string The name of a value or factory callback.
return mixed The value or factory callback.