Merge pull request #368 from romainneutron/plugins

[3.8] Welcome Plugins
This commit is contained in:
Romain Neutron
2013-05-31 07:38:46 -07:00
86 changed files with 3091 additions and 38 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

@@ -36,7 +36,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__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../lib/autoload.php';
try {
$cli = new CLI("