Adapters
9 years ago
Providers
9 years ago
Autoload.php
9 years ago
Embera.php
9 years ago
FakeResponse.php
9 years ago
Formatter.php
9 years ago
HttpRequest.php
9 years ago
Oembed.php
9 years ago
Providers.php
9 years ago
Url.php
9 years ago
Autoload.php
23 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Autoload.php |
| 4 | * The Embera Autoloader, to be used when there is no composer around. |
| 5 | * |
| 6 | * @author Michael Pratt <pratt@hablarmierda.net> |
| 7 | * @link http://www.michael-pratt.com/ |
| 8 | * |
| 9 | * For the full copyright and license information, please view the LICENSE |
| 10 | * file that was distributed with this source code. |
| 11 | */ |
| 12 | |
| 13 | if (function_exists('spl_autoload_register')) |
| 14 | { |
| 15 | spl_autoload_register(function ($class) { |
| 16 | $class = __DIR__ . '/' . str_replace('\\', DIRECTORY_SEPARATOR, str_replace('Embera\\', '', $class)) . '.php'; |
| 17 | if (file_exists($class)) |
| 18 | require $class; |
| 19 | }); |
| 20 | } |
| 21 | |
| 22 | ?> |
| 23 |