Created
June 20, 2012 07:37
-
-
Save jmfontaine/2958652 to your computer and use it in GitHub Desktop.
Mixing libraries
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 | |
require 'lib/LibraryA/AwesomeClass.php' | |
require 'lib/LibraryB/classes/crappy_old_class.php'; | |
$objectA = new AwesomeClass(); | |
$objectA->someMethod(); | |
$objectB = new crappy_old_class(); | |
$objectB->some_other_method(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment