| @@ 333-338 (lines=6) @@ | ||
| 330 | $class = '\\Plugin\\'.$config['code'].'\\'.$config['event']; |
|
| 331 | $eventExists = true; |
|
| 332 | ||
| 333 | if (!class_exists($class)) { |
|
| 334 | $app['monolog']->warning("Event class for plugin {$code} not exists.", array( |
|
| 335 | 'class' => $class, |
|
| 336 | )); |
|
| 337 | $eventExists = false; |
|
| 338 | } |
|
| 339 | ||
| 340 | if ($eventExists && isset($config['event'])) { |
|
| 341 | ||
| @@ 371-376 (lines=6) @@ | ||
| 368 | // config.ymlの`service`定義から登録する |
|
| 369 | foreach ($config['service'] as $service) { |
|
| 370 | $class = '\\Plugin\\'.$code.'\\ServiceProvider\\'.$service; |
|
| 371 | if (!class_exists($class)) { |
|
| 372 | $app['monolog']->warning("Service provider class for plugin {$code} not exists.", array( |
|
| 373 | 'class' => $class, |
|
| 374 | )); |
|
| 375 | continue; |
|
| 376 | } |
|
| 377 | $app->register(new $class($app)); |
|
| 378 | } |
|
| 379 | } else { |
|