Skip to content

Instantly share code, notes, and snippets.

@geerteltink
geerteltink / cli-config.php
Last active April 2, 2019 12:57
Zend Expressive Doctrine Factory and Redis Cache
<?php
/**
* Configuration for doctrine cli.
*
* This file is auto detected and used by doctrine cli.
*/
use Doctrine\ORM\Tools\Console\ConsoleRunner;
use Doctrine\ORM\EntityManager;
@Ocramius
Ocramius / PostEntity.php
Created August 5, 2013 19:47
Example "manual" hydration with ZF2 and a Doctrine loaded entity
<?php
class PostEntity
{
private $id;
private $user;
private $title;
private $content;
private $date;
@intellix
intellix / Application\Service\UserService.php
Created July 28, 2013 22:42
Bcrypt passwords with ZF2 + Doctrine ORM Module
<?php
namespace Application\Service;
use Zend\Crypt\Password\Bcrypt;
use Application\Entity;
class UserService
{