mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-01 09:58:49 +03:00
v1.2.7.416
This commit is contained in:
parent
54e2645fcf
commit
3b27abbe9a
434 changed files with 51 additions and 72 deletions
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace Buzz\Message\Factory;
|
||||
|
||||
use Buzz\Message\Form\FormRequest;
|
||||
use Buzz\Message\Request;
|
||||
use Buzz\Message\RequestInterface;
|
||||
use Buzz\Message\Response;
|
||||
|
||||
class Factory implements FactoryInterface
|
||||
{
|
||||
public function createRequest($method = RequestInterface::METHOD_GET, $resource = '/', $host = null)
|
||||
{
|
||||
return new Request($method, $resource, $host);
|
||||
}
|
||||
|
||||
public function createFormRequest($method = RequestInterface::METHOD_POST, $resource = '/', $host = null)
|
||||
{
|
||||
return new FormRequest($method, $resource, $host);
|
||||
}
|
||||
|
||||
public function createResponse()
|
||||
{
|
||||
return new Response();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Buzz\Message\Factory;
|
||||
|
||||
use Buzz\Message\RequestInterface;
|
||||
|
||||
interface FactoryInterface
|
||||
{
|
||||
public function createRequest($method = RequestInterface::METHOD_GET, $resource = '/', $host = null);
|
||||
public function createFormRequest($method = RequestInterface::METHOD_POST, $resource = '/', $host = null);
|
||||
public function createResponse();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue