Skip to content

Instantly share code, notes, and snippets.

@jmfontaine
Created June 20, 2012 07:37
Show Gist options
  • Save jmfontaine/2958652 to your computer and use it in GitHub Desktop.
Save jmfontaine/2958652 to your computer and use it in GitHub Desktop.
Mixing libraries
<?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