Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Tyrael
Created August 7, 2011 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tyrael/1130402 to your computer and use it in GitHub Desktop.
Save Tyrael/1130402 to your computer and use it in GitHub Desktop.
autoloader for pyrus
<?php
/**
* @author Brett Bieber
* @desc autoload.php
*/
// load PEAR2\Autoload first
require_once __DIR__ . '/../PEAR2_Autoload/src/PEAR2/Autoload.php';
// Setup the local source dir
PEAR2\Autoload::initialize(__DIR__ . '/src');
// Setup the Pyrus_Developer checkout
PEAR2\Autoload::initialize(__DIR__ . '/../Pyrus_Developer/src');
// Fall back to the local vendor dir
PEAR2\Autoload::initialize(__DIR__ . '/vendor/php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment