Permalink
Browse files

use key as class name

  • Loading branch information...
1 parent 6977145 commit 6c5e3a87419ab5f9a896403bbca2d41c7222e732 @cweiske committed Apr 15, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 data/config.default.php
  2. +1 −1 src/phorkie/Tool/Manager.php
View
@@ -7,8 +7,8 @@
'css' => 'http://twitter.github.com/bootstrap/assets/css/bootstrap.css',
);
$GLOBALS['phorkie']['tools'] = array(
- '\\phorkie\\Tool_Xmllint',
- '\\phorkie\\Tool_PHPlint',
+ '\\phorkie\\Tool_Xmllint' => true,
+ '\\phorkie\\Tool_PHPlint' => true,
);
/**
* Array of supported file types / languages.
@@ -8,7 +8,7 @@ public function getSuitable(File $file)
{
$ext = $file->getExt();
$suitables = array();
- foreach ($GLOBALS['phorkie']['tools'] as $class) {
+ foreach ($GLOBALS['phorkie']['tools'] as $class => $arSetup) {
if (array_search($ext, $class::$arSupportedExtensions) !== false) {
$suitables[] = new Tool_Info($class);
}

0 comments on commit 6c5e3a8

Please sign in to comment.