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
setShared
ManaPHP\DiInterface::setShared PHP Method
DiInterface Interface Documentation
Show file
Open project: manaphp/manaphp
setShared()
public
method
Registers an "always shared" service in the services container
public
setShared
(
string
$name
,
mixed
$definition
,
array
$aliases
= [] ) :
static
$name
string
$definition
mixed
$aliases
array
return
static
public function setShared($name, $definition, $aliases = []);
DiInterface
get
getDefault
getShared
has
remove
set
setShared