Class Yiisoft\Yii\Event\InvalidListenerConfigurationException
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getName() | Yiisoft\ |
|
| getSolution() | Yiisoft\ |
Method Details
| public string getName ( ) |
public function getName(): string
{
return 'Invalid event listener configuration.';
}
| public ?string getSolution ( ) |
public function getSolution(): ?string
{
return <<<SOLUTION
Event listener has incorrect configuration. To meet EventConfigurator requirements a listener should be one of:
- A closure.
- [object, method] array.
- [class name, method] array.
- [DI container service ID, method] array.
If you are using a classname or an alias string to be passed to a DI container please check if it is properly configured in the DI container.
SOLUTION;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.