Previous Page
get()

Solar_Registry
set()

Next Class
Solar_Request

set()

static public void set ( string $name, object|string $spec, mixed $config default NULL )

Registers an object under a unique name.

Parameters

  • (string) $name: The name under which to register the object.
  • (object|string) $spec: The registry specification.
  • (mixed) $config: If lazy-loading, use this as the config.

Returns

  • (void)

Description

Registers an object under a unique name.