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