@@ 890-895 (lines=6) @@ | ||
887 | $class = '\\Plugin\\'.$config['code'].'\\'.$config['event']; |
|
888 | $eventExists = true; |
|
889 | ||
890 | if (!class_exists($class)) { |
|
891 | $this['monolog']->warning("Event class for plugin {$code} not exists.", array( |
|
892 | 'class' => $class, |
|
893 | )); |
|
894 | $eventExists = false; |
|
895 | } |
|
896 | ||
897 | if ($eventExists && isset($config['event'])) { |
|
898 | ||
@@ 920-925 (lines=6) @@ | ||
917 | if (isset($config['service'])) { |
|
918 | foreach ($config['service'] as $service) { |
|
919 | $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service; |
|
920 | if (!class_exists($class)) { |
|
921 | $this['monolog']->warning("Service provider class for plugin {$code} not exists.", array( |
|
922 | 'class' => $class, |
|
923 | )); |
|
924 | continue; |
|
925 | } |
|
926 | $this->register(new $class($this)); |
|
927 | } |
|
928 | } |