-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathREADME
More file actions
34 lines (23 loc) · 808 Bytes
/
README
File metadata and controls
34 lines (23 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Autoload #
README
======
What is Autoload?
-----------------
Autoload is a php5.3 autoloader based on the SplClassLoader implementation that
implements the technical interoperability standards for PHP 5.3 namespaces and
class names.
Requirements
------------
PHP 5.3.2 and up.
Usage
-----
<?php
// Example which loads classes for the Doctrine Common package and Symfony
// in the Doctrine\Common namespace and Symfony namespace.
include 'src/Versionable/Autoload/Autoload.php';
use Versionable\Autoload\Autoload;
$classLoader = new Autoload();
$classLoader->registerNamespace('Doctrine\Common', '/path/to/doctrine');
$classLoader->registerNamespace('Symfony', '/path/to/symfony');
$classLoader->register();
?>