Created
August 21, 2017 15:36
-
-
Save jonahgeorge/08b4c49b351cdd1577967c053dd94ad0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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