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