Exemplo n.º 1
0
 /**
  * This function is called after the dependencies have been injected by
  * AutoPilot. Think of it as a user-land constructor.
  */
 public function airshipLand()
 {
     parent::airshipLand();
     $this->storeLensVar('showmenu', true);
     if (!$this->isLoggedIn()) {
         // You need to log in first!
         \Airship\redirect($this->airship_cabin_prefix);
     } elseif (!$this->can('read') && !$this->can('index')) {
         // Sorry, you can't read this?
         \Airship\redirect($this->airship_cabin_prefix . '/error/?' . \http_build_query(['error' => '403 Forbidden']));
     }
 }
Exemplo n.º 2
0
 /**
  * This function is called after the dependencies have been injected by
  * AutoPilot. Think of it as a user-land constructor.
  */
 public function airshipLand()
 {
     parent::airshipLand();
     $this->files = $this->blueprint('PublicFiles');
 }
Exemplo n.º 3
0
 /**
  * This function is called after the dependencies have been injected by
  * AutoPilot. Think of it as a user-land constructor.
  */
 public function airshipLand()
 {
     parent::airshipLand();
     $this->blog = $this->blueprint('Blog');
 }