예제 #1
0
 /**
  * Execute the request.
  */
 public function execute()
 {
     // Get service object.
     $service = $this->getService();
     // Store the data from $this->input
     parent::execute();
 }
예제 #2
0
 /**
  * Execute the request.
  */
 public function execute()
 {
     // Get resource item id from input.
     $this->id = (int) $this->input->get('id');
     // Get resource item data.
     $data = $this->getData();
     // Get service object.
     $service = $this->getService();
     // Load the data into the HAL object.
     $service->load($data);
     parent::execute();
 }
예제 #3
0
 /**
  * Execute the request.
  */
 public function execute()
 {
     // Get service object.
     $service = $this->getService();
     // Look for the top-level resources and add them as links.
     foreach ($this->app->getMaps() as $route => $map) {
         if (strpos($route, '/') === false) {
             $service->addLink(new ApiApplicationHalLink($route, '/' . $route));
         }
     }
     parent::execute();
 }