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\RescanTechnicalDatas;
use Alchemy\Phrasea\Command\UpgradeDBDatas; use Alchemy\Phrasea\Command\UpgradeDBDatas;
use Alchemy\Phrasea\CLI; 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 { try {
$app = new CLI(" $app = new CLI("
@@ -90,6 +92,9 @@ try {
$app->command(new RescanTechnicalDatas('records:rescan-technical-datas')); $app->command(new RescanTechnicalDatas('records:rescan-technical-datas'));
$app->command(new BuildMissingSubdefs('records:build-missing-subdefs')); $app->command(new BuildMissingSubdefs('records:build-missing-subdefs'));
$app->command(new AddPlugin());
$app->command(new RemovePlugin());
$result_code = is_int($app->run()) ? : 1; $result_code = is_int($app->run()) ? : 1;
} catch (\Exception $e) { } catch (\Exception $e) {
$result_code = 1; $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\RunDqlCommand;
use Doctrine\ORM\Tools\Console\Command\ValidateSchemaCommand; use Doctrine\ORM\Tools\Console\Command\ValidateSchemaCommand;
require_once __DIR__ . '/../plugins/autoload.php'; require_once __DIR__ . '/../lib/autoload.php';
try { try {
$cli = new CLI(" $cli = new CLI("

3
lib/autoload.php Normal file
View File

@@ -0,0 +1,3 @@
<?php
return require __DIR__ . '/../plugins/autoload.php';

View File

@@ -1,5 +1,5 @@
<?php <?php
$loader = require __DIR__ . '/../vendor/autoload.php'; $loader = require __DIR__ . '/../lib/autoload.php';
$loader->add('Alchemy\\Tests', __DIR__); $loader->add('Alchemy\\Tests', __DIR__);
$loader->add('', __DIR__ . "/classes"); $loader->add('', __DIR__ . "/classes");

View File

@@ -14,7 +14,7 @@
* @license http://opensource.org/licenses/gpl-3.0 GPLv3 * @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com * @link www.phraseanet.com
*/ */
require_once __DIR__ . '/../vendor/autoload.php'; require_once __DIR__ . '/../lib/autoload.php';
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Api.php'; $app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Api.php';

View File

@@ -14,7 +14,7 @@
* @license http://opensource.org/licenses/gpl-3.0 GPLv3 * @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com * @link www.phraseanet.com
*/ */
require_once __DIR__ . "/../vendor/autoload.php"; require_once __DIR__ . "/../lib/autoload.php";
$environment = 'prod'; $environment = 'prod';
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Root.php'; $app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Root.php';

View File

@@ -14,7 +14,7 @@
* @license http://opensource.org/licenses/gpl-3.0 GPLv3 * @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com * @link www.phraseanet.com
*/ */
require_once __DIR__ . "/../vendor/autoload.php"; require_once __DIR__ . "/../lib/autoload.php";
$environment = 'dev'; $environment = 'dev';
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Root.php'; $app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Root.php';