Class Yiisoft\Yii\Event\InvalidEventConfigurationFormatException
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getName() | Yiisoft\ |
|
| getSolution() | Yiisoft\ |
Method Details
| public string getName ( ) |
public function getName(): string
{
return 'Configuration format passed to EventConfigurator is invalid.';
}
| public ?string getSolution ( ) |
public function getSolution(): ?string
{
return <<<SOLUTION
EventConfigurator accepts an array in the following format:
[
'eventName1' => [\$listener1, \$listener2, ...],
'eventName2' => [\$listener3, \$listener4, ...],
...
]
SOLUTION;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.