Skip to content
Browse files

Add autoload files.

  • Loading branch information...
1 parent c996b85 commit 5d4701ab50143cb8461aa547f573bb8de95e3117 @Thinkscape Thinkscape committed
Showing with 33 additions and 0 deletions.
  1. +19 −0 autoload_classmap.php
  2. +12 −0 autoload_function.php
  3. +2 −0 autoload_register.php
View
19 autoload_classmap.php
@@ -0,0 +1,19 @@
+<?php
+// Generated by ZF2's ./bin/classmap_generator.php
+return array(
+ 'ZendDiagnostics\Check\AbstractCheck' => __DIR__ . '/src/ZendDiagnostics/Check/AbstractCheck.php',
+ 'ZendDiagnostics\Check\CheckInterface' => __DIR__ . '/src/ZendDiagnostics/Check/CheckInterface.php',
+ 'ZendDiagnostics\Result\AbstractResult' => __DIR__ . '/src/ZendDiagnostics/Result/AbstractResult.php',
+ 'ZendDiagnostics\Result\Collection' => __DIR__ . '/src/ZendDiagnostics/Result/Collection.php',
+ 'ZendDiagnostics\Result\Failure' => __DIR__ . '/src/ZendDiagnostics/Result/Failure.php',
+ 'ZendDiagnostics\Result\FailureInterface' => __DIR__ . '/src/ZendDiagnostics/Result/FailureInterface.php',
+ 'ZendDiagnostics\Result\ResultInterface' => __DIR__ . '/src/ZendDiagnostics/Result/ResultInterface.php',
+ 'ZendDiagnostics\Result\Success' => __DIR__ . '/src/ZendDiagnostics/Result/Success.php',
+ 'ZendDiagnostics\Result\SuccessInterface' => __DIR__ . '/src/ZendDiagnostics/Result/SuccessInterface.php',
+ 'ZendDiagnostics\Result\Warning' => __DIR__ . '/src/ZendDiagnostics/Result/Warning.php',
+ 'ZendDiagnostics\Result\WarningInterface' => __DIR__ . '/src/ZendDiagnostics/Result/WarningInterface.php',
+ 'ZendDiagnostics\Runner\Reporter\BasicConsole' => __DIR__ . '/src/ZendDiagnostics/Runner/Reporter/BasicConsole.php',
+ 'ZendDiagnostics\Runner\Reporter\ConsoleColor' => __DIR__ . '/src/ZendDiagnostics/Runner/Reporter/ConsoleColor.php',
+ 'ZendDiagnostics\Runner\Reporter\ReporterInterface' => __DIR__ . '/src/ZendDiagnostics/Runner/Reporter/ReporterInterface.php',
+ 'ZendDiagnostics\Runner\Runner' => __DIR__ . '/src/ZendDiagnostics/Runner/Runner.php',
+);
View
12 autoload_function.php
@@ -0,0 +1,12 @@
+<?php
+return function ($class) {
+ static $map;
+ if (!$map) {
+ $map = include __DIR__ . '/autoload_classmap.php';
+ }
+
+ if (!isset($map[$class])) {
+ return false;
+ }
+ return include $map[$class];
+};
View
2 autoload_register.php
@@ -0,0 +1,2 @@
+<?php
+spl_autoload_register(include __DIR__ . '/autoload_function.php');

0 comments on commit 5d4701a

Please sign in to comment.
Something went wrong with that request. Please try again.