git-svn-id: https://msi/svn/firstRepo/Service/branches/Slim3@40 0f545695-f87b-41b6-9a03-7f16563b5454

This commit is contained in:
2016-01-05 21:43:12 +00:00
parent 4318dd829f
commit 00d78a2ba8
46 changed files with 4960 additions and 32 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
/**
* Slim Framework (http://slimframework.com)
*
* @link https://github.com/slimphp/Slim
* @copyright Copyright (c) 2011-2015 Josh Lockhart
* @license https://github.com/slimphp/Slim/blob/3.x/LICENSE.md (MIT License)
*/
namespace Slim\Interfaces\Http;
/**
* Cookies Interface
*
* @package Slim
* @since 3.0.0
*/
interface CookiesInterface
{
public function get($name, $default = null);
public function set($name, $value);
public function toHeaders();
public static function parseHeader($header);
}
@@ -0,0 +1,20 @@
<?php
/**
* Slim Framework (http://slimframework.com)
*
* @link https://github.com/slimphp/Slim
* @copyright Copyright (c) 2011-2015 Josh Lockhart
* @license https://github.com/slimphp/Slim/blob/3.x/LICENSE.md (MIT License)
*/
namespace Slim\Interfaces\Http;
/**
* Environment Interface
*
* @package Slim
* @since 3.0.0
*/
interface EnvironmentInterface
{
public static function mock(array $settings = []);
}
+24
View File
@@ -0,0 +1,24 @@
<?php
/**
* Slim Framework (http://slimframework.com)
*
* @link https://github.com/slimphp/Slim
* @copyright Copyright (c) 2011-2015 Josh Lockhart
* @license https://github.com/slimphp/Slim/blob/3.x/LICENSE.md (MIT License)
*/
namespace Slim\Interfaces\Http;
use Slim\Interfaces\CollectionInterface;
/**
* Headers Interface
*
* @package Slim
* @since 3.0.0
*/
interface HeadersInterface extends CollectionInterface
{
public function add($key, $value);
public function normalizeKey($key);
}