Skip to content

Instantly share code, notes, and snippets.

View gilsonDNA's full-sized avatar

GILSON ANSELMO DE ARAUJO gilsonDNA

View GitHub Profile
@gilsonDNA
gilsonDNA / Configurator.php
Created September 9, 2015 12:01
Configurator
<?php
namespace Livraria\Entity;
class Configurator {
public static function configure($target, $options, $tryCall=false)
{
if( !is_object($target)){
throw new \Exception('Target should be an objet');
@gilsonDNA
gilsonDNA / doctrine_orm.local.php
Last active September 4, 2015 02:07
doctrine_orm.local.php
<?php
return array(
'doctrine' => array(
'connection' => array(
'orm_default' => array(
'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
'params' => array(
'host' => 'localhost',
'port' => '3306',