Example #1
0
 /**
  * Constructor
  *
  * @param  string  $resource
  * @param  array|Input  $input
  *
  * @since  1.0.0
  */
 public function __construct($app, $resource = '', $inputInstance = null, RequestInjectionFactory $factory)
 {
     parent::__construct($app, $resource, $inputInstance, $factory);
     // store this requests config container
     $this->config = $app->getConfig();
     // make sure the request has the correct format
     $this->request = '/' . trim(strval($resource), '/');
 }
Example #2
0
 /**
  * Constructor
  *
  * @param  string  $resource
  * @param  array|Input  $input
  *
  * @since  1.0.0
  */
 public function __construct($component, $resource = '', $inputInstance = null, RequestInjectionFactory $factory)
 {
     parent::__construct($component, $resource, $inputInstance, $factory);
     // make sure the request has the correct format
     $this->request = '/' . trim(strval($resource), '/');
 }