Beispiel #1
0
	/**
	 * Get the files to load the routes from
	 *
	 * @return string[]
	 */
	public function getRoutingFiles() {
		if (!isset($this->routingFiles)) {
			$this->routingFiles = array();
			foreach (\OC_APP::getEnabledApps() as $app) {
				$file = \OC_App::getAppPath($app) . '/appinfo/routes.php';
				if (file_exists($file)) {
					$this->routingFiles[$app] = $file;
				}
			}
		}
		return $this->routingFiles;
	}
Beispiel #2
0
 public static function loadAppClassPaths()
 {
     foreach (OC_APP::getEnabledApps() as $app) {
         $file = OC_App::getAppPath($app) . '/appinfo/classpath.php';
         if (file_exists($file)) {
             require_once $file;
         }
     }
 }