Beispiel #1
0
 public static function get($key = null, $default = null)
 {
     return Request::input($key, $default);
 }
Beispiel #2
0
 /**
  * Method: setDefaults
  * =========================================================================
  * This is where we set all our defaults. If you need to customise this
  * container this is a good place to look to see what can be configured
  * and how to configure it.
  * 
  * Parameters:
  * -------------------------------------------------------------------------
  * n/a
  * 
  * Returns:
  * -------------------------------------------------------------------------
  * void
  */
 protected function setDefaults()
 {
     $this->exitOnComplete = true;
     $this->dispatcher = function () {
         return new Dispatcher();
     };
     $this->finder = $this->factory(function () {
         return new Finder();
     });
     $this->request = function () {
         return Request::createFromGlobals();
     };
     $this->laravelRouter = function () {
         return new LaravelRouter($this->dispatcher);
     };
 }