Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
ManaPHP
DiInterface
set
ManaPHP\DiInterface::set PHP Method
DiInterface Interface Documentation
Show file
Open project: manaphp/manaphp
set()
public
method
Registers a service in the service container
public
set
(
string
$name
,
mixed
$definition
,
boolean
$shared
= false,
array
$aliases
= [] ) :
static
$name
string
$definition
mixed
$shared
boolean
$aliases
array
return
static
public function set($name, $definition, $shared = false, $aliases = []);
DiInterface
get
getDefault
getShared
has
remove
set
setShared