| @@ 979-984 (lines=6) @@ | ||
| 976 | $class = '\\Plugin\\'.$config['code'].'\\'.$config['event']; |
|
| 977 | $eventExists = true; |
|
| 978 | ||
| 979 | if (!class_exists($class)) { |
|
| 980 | $this['monolog']->warning("Event class for plugin {$code} not exists.", array( |
|
| 981 | 'class' => $class, |
|
| 982 | )); |
|
| 983 | $eventExists = false; |
|
| 984 | } |
|
| 985 | ||
| 986 | if ($eventExists && isset($config['event'])) { |
|
| 987 | ||
| @@ 1009-1014 (lines=6) @@ | ||
| 1006 | if (isset($config['service'])) { |
|
| 1007 | foreach ($config['service'] as $service) { |
|
| 1008 | $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service; |
|
| 1009 | if (!class_exists($class)) { |
|
| 1010 | $this['monolog']->warning("Service provider class for plugin {$code} not exists.", array( |
|
| 1011 | 'class' => $class, |
|
| 1012 | )); |
|
| 1013 | continue; |
|
| 1014 | } |
|
| 1015 | $this->register(new $class($this)); |
|
| 1016 | } |
|
| 1017 | } |
|