Class Yiisoft\Yii\Event\InvalidEventConfigurationFormatException
| Inheritance | Yiisoft\Yii\Event\InvalidEventConfigurationFormatException » InvalidArgumentException |
|---|---|
| Implements | Yiisoft\FriendlyException\FriendlyExceptionInterface |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getName() | Yiisoft\Yii\Event\InvalidEventConfigurationFormatException | |
| getSolution() | Yiisoft\Yii\Event\InvalidEventConfigurationFormatException |
Method Details
| public getName( ): string |
public function getName(): string
{
return 'Configuration format passed to EventConfigurator is invalid.';
}
| public getSolution( ): string|null |
public function getSolution(): ?string
{
return <<<SOLUTION
EventConfigurator accepts an array in the following format:
[
'eventName1' => [\$listener1, \$listener2, ...],
'eventName2' => [\$listener3, \$listener4, ...],
...
]
SOLUTION;
}
Signup or Login in order to comment.