blink\core\Application::makeRequest PHP Method

makeRequest() public method

public makeRequest ( $config = [] )
    public function makeRequest($config = [])
    {
        $request = $this->get('request');
        foreach ($config as $name => $value) {
            $request->{$name} = $value;
        }
        return $request;
    }

Usage Example

Example #1
0
 public function __construct(\PHPUnit_Framework_TestCase $phpunit, Application $app)
 {
     $this->phpunit = $phpunit;
     $this->app = $app;
     $this->request = $app->makeRequest();
 }