| @@ 464-474 (lines=11) @@ | ||
| 461 | } |
|
| 462 | ||
| 463 | public static function loadAppClassPaths() { |
|
| 464 | foreach (OC_APP::getEnabledApps() as $app) { |
|
| 465 | $appPath = OC_App::getAppPath($app); |
|
| 466 | if ($appPath === false) { |
|
| 467 | continue; |
|
| 468 | } |
|
| 469 | ||
| 470 | $file = $appPath . '/appinfo/classpath.php'; |
|
| 471 | if (file_exists($file)) { |
|
| 472 | require_once $file; |
|
| 473 | } |
|
| 474 | } |
|
| 475 | } |
|
| 476 | ||
| 477 | /** |
|
| @@ 98-106 (lines=9) @@ | ||
| 95 | public function getRoutingFiles() { |
|
| 96 | if (!isset($this->routingFiles)) { |
|
| 97 | $this->routingFiles = []; |
|
| 98 | foreach (\OC_APP::getEnabledApps() as $app) { |
|
| 99 | $appPath = \OC_App::getAppPath($app); |
|
| 100 | if($appPath !== false) { |
|
| 101 | $file = $appPath . '/appinfo/routes.php'; |
|
| 102 | if (file_exists($file)) { |
|
| 103 | $this->routingFiles[$app] = $file; |
|
| 104 | } |
|
| 105 | } |
|
| 106 | } |
|
| 107 | } |
|
| 108 | return $this->routingFiles; |
|
| 109 | } |
|