Update autoloader path

This commit is contained in:
Romain Neutron
2013-05-30 13:09:11 +02:00
parent ff7fd5401e
commit 765b043fa8
7 changed files with 14 additions and 6 deletions

View File

@@ -24,8 +24,10 @@ use Alchemy\Phrasea\Command\RecordAdd;
use Alchemy\Phrasea\Command\RescanTechnicalDatas;
use Alchemy\Phrasea\Command\UpgradeDBDatas;
use Alchemy\Phrasea\CLI;
use Alchemy\Phrasea\Command\Plugin\AddPlugin;
use Alchemy\Phrasea\Command\Plugin\RemovePlugin;
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../lib/autoload.php';
try {
$app = new CLI("
@@ -90,6 +92,9 @@ try {
$app->command(new RescanTechnicalDatas('records:rescan-technical-datas'));
$app->command(new BuildMissingSubdefs('records:build-missing-subdefs'));
$app->command(new AddPlugin());
$app->command(new RemovePlugin());
$result_code = is_int($app->run()) ? : 1;
} catch (\Exception $e) {
$result_code = 1;

View File

@@ -34,7 +34,7 @@ use Doctrine\ORM\Tools\Console\Command\ConvertMappingCommand;
use Doctrine\ORM\Tools\Console\Command\RunDqlCommand;
use Doctrine\ORM\Tools\Console\Command\ValidateSchemaCommand;
require_once __DIR__ . '/../plugins/autoload.php';
require_once __DIR__ . '/../lib/autoload.php';
try {
$cli = new CLI("