Parameters
What are parameters
Register a parameter
return [
'key' => 100,
'key2' => [
'string'
],
];Use a parameter
public function __construct($key) {
}Last updated
return [
'key' => 100,
'key2' => [
'string'
],
];public function __construct($key) {
}Last updated
$this->getContainer()->get('key');