Solar::factory()

static public object Solar::factory ( string $class , array $config = NULL )

Convenience method to instantiate and configure an object.

Parameters

  • (string) $class: The class name.

  • (array) $config: Configuration value overrides, if any.

Returns

  • (object) A new instance of the requested class.

Description

Convenience method to instantiate and configure an object.



Local