Skip to content

Instantly share code, notes, and snippets.

View mrferos's full-sized avatar

Andres Galindo mrferos

View GitHub Profile
<?php
array (
'Stuff\\V1\\Rest\\Customers\\Controller' =>
array (
'listener' => 'Stuff\\V1\\Rest\\Customers\\CustomersResource',
'route_name' => 'stuff.rest.customers',
'identifier_name' => 'customer_id',
'collection_name' => 'customers',
'resource_http_methods' =>
@mrferos
mrferos / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mrferos
mrferos / example.php
Created October 7, 2015 18:34
Playing with stratigility
<?php
require_once __DIR__ . '/../vendor/autoload.php';
use \Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\ResponseInterface;
$app = new \Zend\Stratigility\MiddlewarePipe();
$app->pipe('/', function(ServerRequestInterface $request, ResponseInterface $response, callable $next = null) {
$body = $response->getBody();