コード例 #1
0
 public static function handleRequest($action)
 {
     if (static::$_currentRepo = Repo::getById($action)) {
         return static::handleRepositoryRequest();
     } else {
         return \Emergence\Developer\Tools\RequestHandler::throwNotFoundError();
     }
 }
コード例 #2
0
 public static function handleHomeRequest()
 {
     $GLOBALS['Session']->requireAccountLevel('Developer');
     return static::respond('home', ['Repos' => Repo::getAll()]);
 }