Merge branch '3.6' of github.com:alchemy-fr/Phraseanet into 3.6

This commit is contained in:
Nicolas Le Goff
2012-02-07 12:01:45 +01:00
25 changed files with 3876 additions and 3895 deletions

View File

@@ -365,7 +365,7 @@ class Core extends \Pimple
{
// require_once __DIR__ . '/../../vendor/symfony/src/Symfony/Component/ClassLoader/UniversalClassLoader.php';
require_once __DIR__ . '/Loader/Autoloader.php';
$loader = new Loader\Autoloader();
$loader->registerPrefixes(array('Twig' => realpath(__DIR__ . '/../../vendor/Twig/lib')));
@@ -384,7 +384,7 @@ class Core extends \Pimple
'Doctrine\\Logger' => realpath(__DIR__ . '/../../'),
'Monolog' => realpath(__DIR__ . '/../../vendor/Silex/vendor/monolog/src'),
));
$loader->register();
require_once __DIR__ . '/../../vendor/Silex/autoload.php';

View File

@@ -67,4 +67,4 @@ Class ApcAutoloader extends Autoloader implements CacheStrategy
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
}
}
}

View File

@@ -42,4 +42,4 @@ class Autoloader extends UniversalClassLoader
return $file;
}
}
}

View File

@@ -55,4 +55,4 @@ class CacheAutoloader extends Autoloader
$this->cache->register($prepend);
}
}
}

View File

@@ -19,6 +19,6 @@ namespace Alchemy\Phrasea\Loader;
interface LoaderStrategy
{
public function isAvailable();
public function register();
}
}

View File

@@ -66,4 +66,4 @@ Class XcacheAutoloader extends Autoloader implements CacheStrategy
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
}
}
}