Skip to content

Instantly share code, notes, and snippets.

@guiwoda
guiwoda / AR_Cache_Repository.php
Last active February 25, 2023 21:11
AR (Eloquent) vs DM (Doctrine) gist
<?php
namespace App\ActiveRecord;
class PostRepository
{
private $cache;
public function __construct(Cache $cache)
{
// Any set() / get() cache implementation.
@dhrrgn
dhrrgn / JsonResponder.php
Last active August 29, 2015 14:01
A WIP implementation of the Responder Layer of Paul Jones' ADR Pattern: https://github.com/pmjones/mvc-refinement
<?php
namespace Core\Responder;
class JsonResponder extends Responder
{
/**
* @return \Orno\Http\Response
*/
protected function respond()