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
import ServerRequestFactory from '@chubbyjs/chubbyjs-http-message/dist/Factory/ServerRequestFactory'; | |
import ResponseFactory from '@chubbyjs/chubbyjs-http-message/dist/Factory/ResponseFactory'; | |
import UriFactory from '@chubbyjs/chubbyjs-http-message/dist/Factory/UriFactory'; | |
import { createServer } from 'http'; | |
import PsrRequestFactory from './PsrRequestFactory'; | |
import PsrResponseEmitter from './PsrResponseEmitter'; | |
import ServerRequestInterface from '@chubbyjs/psr-http-message/dist/ServerRequestInterface'; | |
import ResponseInterface from '@chubbyjs/psr-http-message/dist/ResponseInterface'; | |
const responseFactory = new ResponseFactory(); |
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 | |
declare(strict_types=1); | |
use Chubbyphp\Framework\Application; | |
use Chubbyphp\Framework\Middleware\ExceptionMiddleware; | |
use Chubbyphp\Framework\Middleware\RouterMiddleware; | |
use Chubbyphp\Framework\RequestHandler\CallbackRequestHandler; | |
use Chubbyphp\Framework\Router\FastRoute\Router; | |
use Chubbyphp\Framework\Router\Route; |
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 | |
use Composer\Autoload\ClassMapGenerator; | |
use Composer\Autoload\ClassLoader; | |
/** @var ClassLoader $loader */ | |
$loader = require __DIR__ . '/vendor/autoload.php'; | |
$classes = []; |
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 | |
declare(strict_types=1); | |
namespace App\Orm; | |
use Doctrine\DBAL\Connection; | |
use Doctrine\ORM\Decorator\EntityManagerDecorator as DoctrineEntityManagerDecorator; | |
use Doctrine\ORM\EntityManager; |
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
docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli-v3:3.0.11 generate -l php -i /local/swagger.yaml -o /local/php |
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
"use strict"; | |
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', | |
// default font size in pixels for all tabs |
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 | |
$old = [ | |
'name' => 'Old name', | |
'active' => true, | |
'description' => 'This is a description', | |
'items' => [ | |
[ | |
'name' => 'Old item name', | |
'active' => true, |
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
[global_config] | |
enabled_plugins = LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler | |
suppress_multiple_term_dialog = True | |
title_inactive_bg_color = "#22272a" | |
title_inactive_fg_color = "#a8b7b9" | |
title_receive_bg_color = "#22272a" | |
title_receive_fg_color = "#a8b7b9" | |
title_transmit_bg_color = "#363b3e" | |
title_transmit_fg_color = "#94a3a5" | |
[keybindings] |
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 | |
if [ -z "$1" ]; then | |
echo "please enter a projectname: myproject" | |
exit 1 | |
fi | |
if [ -z "$2" ]; then | |
echo "please enter a symfony version: 2.7.5" | |
exit 1 |
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 | |
trait BaseTrait | |
{ | |
abstract public function getDoctine(); | |
} | |
abstract class BaseClass | |
{ | |
use BaseTrait; |
NewerOlder