Methods |
public
abstract
addParameter
(
string
$name
,
$value
) :
void
Adds a parameter to the service locator that can be injected in a tag's factory method. When calling a tag's "create" method we always check the signature for dependencies to inject. One way is to Another way is to check the name of the argument against the names in the Service Locator. With this method Be aware that there are two reserved names:
These parameters are injected at the last moment and will override any existing parameter with those names.
|
public
abstract
addService
(
object
$service
) :
void
Registers a service with the Service Locator using the FQCN of the class or the alias, if provided. When calling a tag's "create" method we always check the signature for dependencies to inject. If a parameter Because interfaces are regularly used as type-hints this method provides an alias parameter; if the FQCN of the |
public
abstract
create
(
string
$tagLine
,
?
phpDocumentor Factory method responsible for instantiating the correct sub type.
|
public
abstract
registerTagHandler
(
string
$tagName
,
string
$handler
) :
void
Registers a handler for tags. If you want to use your own tags then you can use this method to instruct the TagFactory
|