| @@ 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 | } |
|
| @@ 458-468 (lines=11) @@ | ||
| 455 | } |
|
| 456 | ||
| 457 | public static function loadAppClassPaths() { |
|
| 458 | foreach (OC_App::getEnabledApps() as $app) { |
|
| 459 | $appPath = OC_App::getAppPath($app); |
|
| 460 | if ($appPath === false) { |
|
| 461 | continue; |
|
| 462 | } |
|
| 463 | ||
| 464 | $file = $appPath . '/appinfo/classpath.php'; |
|
| 465 | if (\file_exists($file)) { |
|
| 466 | require_once $file; |
|
| 467 | } |
|
| 468 | } |
|
| 469 | } |
|
| 470 | ||
| 471 | /** |
|