class AbstractPackageObjectResolver (View source)

The AbstractFactory class.

Methods

static object
create(string $name, array $args)

create

static string
findClass(string $name)

findClass

static object
getInstance(string $name, array $args = array(), boolean $forceNew = false)

getInstance

static string
getClass(string $name)

getClass

static Container
getContainer(string $name = null, string $profile = null)

getContainer

static void
addNamespace(string $namespace, int $priority = PriorityQueue::NORMAL)

addNamespace

static void
removeNamespace(string $namespace)

removeNamespace

static PriorityQueue
getNamespaces()

Method to get property Namespaces

static void
setNamespaces(array|PriorityQueue $namespaces)

Method to set property namespaces

static array
dumpNamespaces()

dumpNamespaces

static void
reset()

reset

static array
dumpAll()

dumpAll

Details

at line line 44
static object create(string $name, array $args)

create

Parameters

string $name
array $args

Return Value

object

at line line 65
static string findClass(string $name)

findClass

Parameters

string $name

Return Value

string

at line line 104
static object getInstance(string $name, array $args = array(), boolean $forceNew = false)

getInstance

Parameters

string $name
array $args
boolean $forceNew

Return Value

object

at line line 125
static string getClass(string $name)

getClass

Parameters

string $name

Return Value

string

at line line 138
static Container getContainer(string $name = null, string $profile = null)

getContainer

Parameters

string $name
string $profile

Return Value

Container

at line line 151
static void addNamespace(string $namespace, int $priority = PriorityQueue::NORMAL)

addNamespace

Parameters

string $namespace
int $priority

Return Value

void

at line line 165
static void removeNamespace(string $namespace)

removeNamespace

Parameters

string $namespace

Return Value

void

at line line 175
static PriorityQueue getNamespaces()

Method to get property Namespaces

Return Value

PriorityQueue

at line line 194
static void setNamespaces(array|PriorityQueue $namespaces)

Method to set property namespaces

Parameters

array|PriorityQueue $namespaces

Return Value

void

at line line 211
static array dumpNamespaces()

dumpNamespaces

Return Value

array

at line line 221
static void reset()

reset

Return Value

void

at line line 231
static array dumpAll()

dumpAll

Return Value

array