@@ 886-891 (lines=6) @@ | ||
883 | $class = '\\Plugin\\'.$config['code'].'\\'.$config['event']; |
|
884 | $eventExists = true; |
|
885 | ||
886 | if (!class_exists($class)) { |
|
887 | $this['monolog']->warning("skip {$code} loading. event class not foud.", array( |
|
888 | 'class' => $class, |
|
889 | )); |
|
890 | $eventExists = false; |
|
891 | } |
|
892 | ||
893 | if ($eventExists && file_exists($dir->getRealPath().'/event.yml')) { |
|
894 | ||
@@ 916-921 (lines=6) @@ | ||
913 | if (isset($config['service'])) { |
|
914 | foreach ($config['service'] as $service) { |
|
915 | $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service; |
|
916 | if (!class_exists($class)) { |
|
917 | $this['monolog']->warning("skip {$code} loading. service provider class not foud.", array( |
|
918 | 'class' => $class, |
|
919 | )); |
|
920 | continue; |
|
921 | } |
|
922 | $this->register(new $class($this)); |
|
923 | } |
|
924 | } |