mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Update autoloader path
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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
3
lib/autoload.php
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return require __DIR__ . '/../plugins/autoload.php';
|
@@ -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");
|
||||||
|
@@ -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';
|
||||||
|
|
||||||
|
@@ -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';
|
||||||
|
@@ -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';
|
||||||
|
Reference in New Issue
Block a user