- Expanded section on expected structure returned by
getUploadedFiles()
, with several examples ranging from a flat structure to a nested structure with a collection of files. - Clarifications and simplification of URI ->
Host
header interactions.- Updated
withUri()
to indicate it MUST update theHost
header with the value present in the URI provided (if any) UNLESS the$preserveHost
flag is boolean true.
- Updated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Phly\Conduit\Middleware; | |
use Phly\Conduit\FinalHandler; | |
use Phly\Conduit\Http\Request as RequestDecorator; | |
use Phly\Conduit\Http\Response as ResponseDecorator; | |
use Phly\Http\Response; | |
use Phly\Http\Server; | |
use Phly\Http\ServerRequestFactory; | |
require __DIR__ . '/../vendor/autoload.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$conduit->pipe(new class implements MiddlewareInterface { | |
public function __invoke($request, $response, $next) | |
{ | |
$laravelRequest = mungePsr7ToLaravelRequest($request); | |
$laravelNext = function ($request) use ($next, $response) { | |
$request = ; | |
return $next(mungeLaravelToPsr7Request($request), $response) | |
}; | |
$laravelMiddleware = new SomeLaravelMiddleware(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Zend\Http\Request; | |
use Zend\Http\Response;; | |
use ZF\MvcAuth\Authentication\AdapterInterface; | |
use ZF\MvcAuth\Identity\IdentityInterface; | |
use ZF\MvcAuth\MvcAuthEvent; | |
class CompositeAdapter implements AdapterInterface | |
{ | |
private $adapters = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Zend Framework | |
* | |
* LICENSE | |
* | |
* This source file is subject to the new BSD license that is bundled | |
* with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://framework.zend.com/license/new-bsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Zend Framework | |
* | |
* LICENSE | |
* | |
* This source file is subject to the new BSD license that is bundled | |
* with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://framework.zend.com/license/new-bsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sxl = new SimpleXMLElement($url, 0, true); | |
$item = $sxl->item[0]; | |
$link = (string) $item->link; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface Installable | |
{ | |
public function install(); | |
} | |
interface Upgradable | |
{ | |
public function upgrade(); | |
} | |
interface ConfigProvider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function loadModule($moduleName) | |
{ | |
if (!isset($this->loadedModules[$moduleName])) { | |
$class = $moduleName . '\Module'; | |
$module = new $class; | |
$this->runModuleInit($module); | |
$this->mergeModuleConfig($module); | |
$this->loadedModules[$moduleName] = $module; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ------------------------------------------------------------- | |
# Run phpUnit tests for a subset of Zend Framework | |
# ------------------------------------------------------------- | |
# Author: Enrico Zimuel (enrico@zend.com) | |
# ------------------------------------------------------------- | |
ZFPATH="/home/matthew/git/zf-standard/tests" | |
PHP="/home/matthew/svn/phpfarm/inst/bin/php-5.2.17" | |
PHPUNIT="/home/matthew/Downloads/dev/phpunit-3.4/phpunit/phpunit.php" |