@@ 916-921 (lines=6) @@ | ||
913 | $class = '\\Plugin\\'.$config['code'].'\\'.$config['event']; |
|
914 | $eventExists = true; |
|
915 | ||
916 | if (!class_exists($class)) { |
|
917 | $this['monolog']->warning("Event class for plugin {$code} not exists.", array( |
|
918 | 'class' => $class, |
|
919 | )); |
|
920 | $eventExists = false; |
|
921 | } |
|
922 | ||
923 | if ($eventExists && isset($config['event'])) { |
|
924 | ||
@@ 946-951 (lines=6) @@ | ||
943 | if (isset($config['service'])) { |
|
944 | foreach ($config['service'] as $service) { |
|
945 | $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service; |
|
946 | if (!class_exists($class)) { |
|
947 | $this['monolog']->warning("Service provider class for plugin {$code} not exists.", array( |
|
948 | 'class' => $class, |
|
949 | )); |
|
950 | continue; |
|
951 | } |
|
952 | $this->register(new $class($this)); |
|
953 | } |
|
954 | } |