| @@ 890-895 (lines=6) @@ | ||
| 887 | $class = '\\Plugin\\'.$config['code'].'\\'.$config['event'];  | 
                                |
| 888 | $eventExists = true;  | 
                                |
| 889 | ||
| 890 |                 if (!class_exists($class)) { | 
                                |
| 891 |                     $this['monolog']->warning("skip {$code} loading. event class not foud.", array( | 
                                |
| 892 | 'class' => $class,  | 
                                |
| 893 | ));  | 
                                |
| 894 | $eventExists = false;  | 
                                |
| 895 | }  | 
                                |
| 896 | ||
| 897 |                 if ($eventExists && file_exists($dir->getRealPath().'/event.yml')) { | 
                                |
| 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("skip {$code} loading. service provider class not foud.", array( | 
                                |
| 922 | 'class' => $class,  | 
                                |
| 923 | ));  | 
                                |
| 924 | continue;  | 
                                |
| 925 | }  | 
                                |
| 926 | $this->register(new $class($this));  | 
                                |
| 927 | }  | 
                                |
| 928 | }  | 
                                |