This file contains hidden or 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 (http://framework.zend.com/) | |
* | |
* @see https://github.com/zendframework/zend-expressive for the canonical source repository | |
* @copyright Copyright (c) 2015-2016 Zend Technologies USA Inc. (http://www.zend.com) | |
* @license https://github.com/zendframework/zend-expressive/blob/master/LICENSE.md New BSD License | |
*/ | |
namespace Zend\Expressive\Container; |
This file contains hidden or 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 | |
/** | |
* @link https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Advanced+Metadata | |
*/ | |
namespace PHPSTORM_META { | |
/** @noinspection PhpUnusedLocalVariableInspection */ | |
/** @noinspection PhpIllegalArrayKeyTypeInspection */ | |
$STATIC_METHOD_TYPES = [ | |
\Interop\Container\ContainerInterface::get('') => [ | |
'config' instanceof \ArrayObject, |
This file contains hidden or 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 | |
# | |
SERVER="https://acme-v01.api.letsencrypt.org/directory" | |
EMAIL="[email protected]" | |
DOMAINS=("example.com" "example2.com" "example3.com") | |
WEBROOT=/tmp/letsencrypt/www | |
for DOMAIN in "${DOMAINS[@]}" | |
do | |
mkdir -p $WEBROOT |
This file contains hidden or 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
{ | |
"package": { | |
"name": "zendframework/zend-expressive-skeleton", | |
"version": "0.0.x-dev", | |
"source": { | |
"url": "https://github.com/xtreamwayz/expressive-composer-installer/", | |
"type": "git", | |
"reference": "hotfix/composer-serve" | |
} | |
} |
This file contains hidden or 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 | |
namespace App\Core\Security; | |
use App\Domain\User\UserRepository; | |
use Psr\Http\Message\ResponseInterface; | |
use Psr\Http\Message\ServerRequestInterface; | |
use PSR7Session\Http\SessionMiddleware; | |
class AuthenticationMiddleware |
This file contains hidden or 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
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title>ZendFramework Components</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="apple-touch-icon" href="apple-touch-icon.png"> |
This file contains hidden or 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 | |
namespace App\Core\I18n; | |
use Zend\Expressive\Helper\UrlHelper; | |
class I18nUrlHelper extends UrlHelper | |
{ | |
public function __invoke($route = null, array $params = []) | |
{ |
This file contains hidden or 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 | |
namespace App\Middleware; | |
use Psr\Http\Message\ServerRequestInterface; | |
use Psr\Http\Message\ResponseInterface; | |
class BasicMiddleware | |
{ | |
public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
This file contains hidden or 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 | |
// Valid UTF-8 string | |
$htmlForm = <<<'HTML' | |
<form action="/" method="post"> | |
<input type="text" id="title" name="title" required value="Îñţérñåţîöñåļîžåţîöñ" /> | |
<button type="submit" class="btn btn-primary">Submit</button> | |
</form> | |
HTML; |
This file contains hidden or 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 | |
class User | |
{ | |
private $name; | |
public function __construct() | |
{ | |
} |