PHP Class M1\Vars\Provider\Silex\VarsServiceProvider

Since: 0.1.0
Inheritance: implements Silex\ServiceProviderInterface
Datei anzeigen Open project: m1/Vars

Public Methods

Method Description
__construct ( mixed $entity = null ) The service provider constructor sets the entity to use with vars
boot ( Silex\Application $app ) The silex service provider boot function
register ( Silex\Application $app ) Registers the service provider, sets the user defined options and returns the vars instance

Private Methods

Method Description
createKeyedOptions ( array $options, array $vars_options ) : array Registers the service provider, sets the user defined options and returns the vars instance
createOptions ( Silex\Application $app ) : array Creates the defined options into a way that Vars can use

Method Details

__construct() public method

The service provider constructor sets the entity to use with vars
public __construct ( mixed $entity = null )
$entity mixed The entity

boot() public method

The silex service provider boot function
public boot ( Silex\Application $app )
$app Silex\Application The silex app

register() public method

Registers the service provider, sets the user defined options and returns the vars instance
public register ( Silex\Application $app )
$app Silex\Application The silex app