| @@ 901-906 (lines=6) @@ | ||
| 898 | $class = '\\Plugin\\'.$config['code'].'\\'.$config['event']; |
|
| 899 | $eventExists = true; |
|
| 900 | ||
| 901 | if (!class_exists($class)) { |
|
| 902 | $this['monolog']->warning("Event class for plugin {$code} not exists.", array( |
|
| 903 | 'class' => $class, |
|
| 904 | )); |
|
| 905 | $eventExists = false; |
|
| 906 | } |
|
| 907 | ||
| 908 | if ($eventExists && isset($config['event'])) { |
|
| 909 | ||
| @@ 931-936 (lines=6) @@ | ||
| 928 | if (isset($config['service'])) { |
|
| 929 | foreach ($config['service'] as $service) { |
|
| 930 | $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service; |
|
| 931 | if (!class_exists($class)) { |
|
| 932 | $this['monolog']->warning("Service provider class for plugin {$code} not exists.", array( |
|
| 933 | 'class' => $class, |
|
| 934 | )); |
|
| 935 | continue; |
|
| 936 | } |
|
| 937 | $this->register(new $class($this)); |
|
| 938 | } |
|
| 939 | } |
|