| @@ 897-902 (lines=6) @@ | ||
| 894 | $class = '\\Plugin\\'.$config['code'].'\\'.$config['event']; | |
| 895 | $eventExists = true; | |
| 896 | ||
| 897 |                 if (!class_exists($class)) { | |
| 898 |                     $this['monolog']->warning("skip {$code} loading. event class not foud.", array( | |
| 899 | 'class' => $class, | |
| 900 | )); | |
| 901 | $eventExists = false; | |
| 902 | } | |
| 903 | ||
| 904 |                 if ($eventExists && file_exists($dir->getRealPath().'/event.yml')) { | |
| 905 | ||
| @@ 927-932 (lines=6) @@ | ||
| 924 |             if (isset($config['service'])) { | |
| 925 |                 foreach ($config['service'] as $service) { | |
| 926 | $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service; | |
| 927 |                     if (!class_exists($class)) { | |
| 928 |                         $this['monolog']->warning("skip {$code} loading. service provider class not foud.", array( | |
| 929 | 'class' => $class, | |
| 930 | )); | |
| 931 | continue; | |
| 932 | } | |
| 933 | $this->register(new $class($this)); | |
| 934 | } | |
| 935 | } | |