Permalink
Browse files

Refactor namespace - replace generic \Tools by \Autoload

  • Loading branch information...
theseer committed Oct 8, 2011
1 parent ff2960c commit abc677b68257a1c7f26b726f0bb90f32fd2710f8
View
@@ -53,6 +53,6 @@
require __DIR__ . '/src/cli.php';
-$exec = new \TheSeer\Tools\CLI();
+$exec = new \TheSeer\Autoload\CLI();
$exec->run();
exit(0);
View
@@ -2,7 +2,7 @@
require '../src/classfinder.php';
- $finder = new \TheSeer\Tools\ClassFinder;
+ $finder = new \TheSeer\Autoload\ClassFinder;
$rc = $finder->parseFile('src/classfinder.php');
var_dump($rc);
View
@@ -8,10 +8,10 @@
require '../../scanner/src/filesonlyfilter.php';
- $scanner = new \TheSeer\Tools\DirectoryScanner;
+ $scanner = new \TheSeer\Autoload\DirectoryScanner;
$scanner->addInclude('*.php');
- $finder = new \TheSeer\Tools\ClassFinder;
+ $finder = new \TheSeer\Autoload\ClassFinder;
$rc = $finder->parseMulti($scanner('../'));
var_dump($rc);
View
@@ -8,13 +8,13 @@
require '../../scanner/src/includeexcludefilter.php';
require '../../scanner/src/filesonlyfilter.php';
- $scanner = new \TheSeer\Tools\DirectoryScanner;
+ $scanner = new \TheSeer\Autoload\DirectoryScanner;
$scanner->addInclude('*.php');
- $finder = new \TheSeer\Tools\ClassFinder;
+ $finder = new \TheSeer\Autoload\ClassFinder;
$found = $finder->parseMulti($scanner('../'));
- $ab = new \TheSeer\Tools\AutoloadBuilder($found);
+ $ab = new \TheSeer\Autoload\AutoloadBuilder($found);
echo $ab->render();
View
@@ -8,14 +8,14 @@
require '../../scanner/src/includeexcludefilter.php';
require '../../scanner/src/filesonlyfilter.php';
- $scanner = new \TheSeer\Tools\DirectoryScanner;
+ $scanner = new \TheSeer\Autoload\DirectoryScanner;
$scanner->addInclude('*.php');
- $finder = new \TheSeer\Tools\ClassFinder;
+ $finder = new \TheSeer\Autoload\ClassFinder;
$found = $finder->parseMulti($scanner('../'));
- $ab = new \TheSeer\Tools\AutoloadBuilder($found);
+ $ab = new \TheSeer\Autoload\AutoloadBuilder($found);
$ab->setIndent("\t");
$ab->setLineBreak("\r\n");
echo $ab->render();
View
@@ -8,14 +8,14 @@
require '../../scanner/src/includeexcludefilter.php';
require '../../scanner/src/filesonlyfilter.php';
- $scanner = new \TheSeer\Tools\DirectoryScanner;
+ $scanner = new \TheSeer\Autoload\DirectoryScanner;
$scanner->addInclude('*.php');
- $finder = new \TheSeer\Tools\ClassFinder;
+ $finder = new \TheSeer\Autoload\ClassFinder;
$found = $finder->parseMulti($scanner('../'));
- $ab = new \TheSeer\Tools\AutoloadBuilder($found);
+ $ab = new \TheSeer\Autoload\AutoloadBuilder($found);
$ab->setBaseDir(realpath(__DIR__.'/..'));
echo $ab->render();
View
@@ -3,13 +3,13 @@
require '../src/classfinder.php';
require '../src/dependencysorter.php';
-$finder = new \TheSeer\Tools\ClassFinder(true);
+$finder = new \TheSeer\Autoload\ClassFinder(true);
$finder->parseFile('../tests/_data/dependency/file2.php');
$finder->parseFile('../tests/_data/dependency/file1.php');
$found = $finder->getClasses();
-$x = new \TheSeer\Tools\classDependencySorter($found, $finder->getDependencies());
+$x = new \TheSeer\Autoload\classDependencySorter($found, $finder->getDependencies());
$r = $x->process();
var_dump($found, $finder->getDependencies(), $r);
Oops, something went wrong.

0 comments on commit abc677b

Please sign in to comment.