Skip to content

Instantly share code, notes, and snippets.

@jonahgeorge
Created August 21, 2017 15:36
Show Gist options
  • Save jonahgeorge/08b4c49b351cdd1577967c053dd94ad0 to your computer and use it in GitHub Desktop.
Save jonahgeorge/08b4c49b351cdd1577967c053dd94ad0 to your computer and use it in GitHub Desktop.
<?php
class Repo
{
function __construct($conn = null)
{
$this->conn = $conn ?? new PDO(Zend_Registry::get("DATABASE_URL"));
}
}
class Controller
{
function __construct($repo = null)
{
$this->repo = $repo ?? new Repo();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment