예제 #1
0
 public function index()
 {
     return "Welcome to {$this->runtime->getApplicationName()} running " . "from {$this->runtime->getAppRootFolder()}";
 }
예제 #2
0
 private function normalizeParameters(array $parameters = [])
 {
     $authentucated = $this->runtime !== null ? !$this->runtime->getCurrentUser()->isGuest() : false;
     $defaults = ['request' => $this->request, 'runtime' => $this->runtime, 'authenticated' => $authentucated];
     return array_merge($defaults, $parameters);
 }