| @@ 334-339 (lines=6) @@ | ||
| 331 | $class = '\\Plugin\\'.$config['code'].'\\'.$config['event']; |
|
| 332 | $eventExists = true; |
|
| 333 | ||
| 334 | if (!class_exists($class)) { |
|
| 335 | $app['monolog']->warning("Event class for plugin {$code} not exists.", array( |
|
| 336 | 'class' => $class, |
|
| 337 | )); |
|
| 338 | $eventExists = false; |
|
| 339 | } |
|
| 340 | ||
| 341 | if ($eventExists && isset($config['event'])) { |
|
| 342 | ||
| @@ 365-370 (lines=6) @@ | ||
| 362 | if (isset($config['service'])) { |
|
| 363 | foreach ($config['service'] as $service) { |
|
| 364 | $class = '\\Plugin\\'.$config['code'].'\\ServiceProvider\\'.$service; |
|
| 365 | if (!class_exists($class)) { |
|
| 366 | $app['monolog']->warning("Service provider class for plugin {$code} not exists.", array( |
|
| 367 | 'class' => $class, |
|
| 368 | )); |
|
| 369 | continue; |
|
| 370 | } |
|
| 371 | $app->register(new $class($this)); |
|
| 372 | } |
|
| 373 | } |
|