Move Console namespace one level up
This commit is contained in:
parent
2628da422a
commit
d716a3326f
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
use Asika\SimpleConsole\Console;
|
use Asika\SimpleConsole\Console;
|
||||||
use Friendica\BaseObject;
|
use Friendica\BaseObject;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
use Asika\SimpleConsole\CommandArgsException;
|
use Asika\SimpleConsole\CommandArgsException;
|
||||||
use Friendica\App;
|
use Friendica\App;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
use Asika\SimpleConsole\CommandArgsException;
|
use Asika\SimpleConsole\CommandArgsException;
|
||||||
use Friendica\App;
|
use Friendica\App;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description of CreateDoxygen
|
* Description of CreateDoxygen
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
use Friendica\Core;
|
use Friendica\Core;
|
||||||
use Friendica\Core\Update;
|
use Friendica\Core\Update;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When I installed docblox, I had the experience that it does not generate any output at all.
|
* When I installed docblox, I had the experience that it does not generate any output at all.
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extracts translation strings from the Friendica project's files to be exported
|
* Extracts translation strings from the Friendica project's files to be exported
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Model\Contact;
|
use Friendica\Model\Contact;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
use Friendica\Core\Protocol;
|
use Friendica\Core\Protocol;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
use Friendica\Core;
|
use Friendica\Core;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read a strings.php file and create messages.po in the same directory
|
* Read a strings.php file and create messages.po in the same directory
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read a messages.po file and create strings.php in the same directory
|
* Read a messages.po file and create strings.php in the same directory
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
use Friendica\Core\Config;
|
use Friendica\Core\Config;
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
use Asika\SimpleConsole\CommandArgsException;
|
use Asika\SimpleConsole\CommandArgsException;
|
||||||
use Asika\SimpleConsole\Console;
|
use Asika\SimpleConsole\Console;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
use Asika\SimpleConsole\CommandArgsException;
|
use Asika\SimpleConsole\CommandArgsException;
|
||||||
use Friendica\Core\StorageManager;
|
use Friendica\Core\StorageManager;
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Core\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
use Friendica\BaseObject;
|
use Friendica\BaseObject;
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
namespace Friendica\Core;
|
namespace Friendica\Core;
|
||||||
|
|
||||||
|
use Friendica;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description of Console
|
* Description of Console
|
||||||
*
|
*
|
||||||
|
@ -47,24 +49,24 @@ HELP;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected $subConsoles = [
|
protected $subConsoles = [
|
||||||
'cache' => __NAMESPACE__ . '\Console\Cache',
|
'cache' => Friendica\Console\Cache::class,
|
||||||
'config' => __NAMESPACE__ . '\Console\Config',
|
'config' => Friendica\Console\Config::class,
|
||||||
'createdoxygen' => __NAMESPACE__ . '\Console\CreateDoxygen',
|
'createdoxygen' => Friendica\Console\CreateDoxygen::class,
|
||||||
'docbloxerrorchecker' => __NAMESPACE__ . '\Console\DocBloxErrorChecker',
|
'docbloxerrorchecker' => Friendica\Console\DocBloxErrorChecker::class,
|
||||||
'dbstructure' => __NAMESPACE__ . '\Console\DatabaseStructure',
|
'dbstructure' => Friendica\Console\DatabaseStructure::class,
|
||||||
'extract' => __NAMESPACE__ . '\Console\Extract',
|
'extract' => Friendica\Console\Extract::class,
|
||||||
'globalcommunityblock' => __NAMESPACE__ . '\Console\GlobalCommunityBlock',
|
'globalcommunityblock' => Friendica\Console\GlobalCommunityBlock::class,
|
||||||
'globalcommunitysilence' => __NAMESPACE__ . '\Console\GlobalCommunitySilence',
|
'globalcommunitysilence' => Friendica\Console\GlobalCommunitySilence::class,
|
||||||
'archivecontact' => __NAMESPACE__ . '\Console\ArchiveContact',
|
'archivecontact' => Friendica\Console\ArchiveContact::class,
|
||||||
'autoinstall' => __NAMESPACE__ . '\Console\AutomaticInstallation',
|
'autoinstall' => Friendica\Console\AutomaticInstallation::class,
|
||||||
'maintenance' => __NAMESPACE__ . '\Console\Maintenance',
|
'maintenance' => Friendica\Console\Maintenance::class,
|
||||||
'newpassword' => __NAMESPACE__ . '\Console\NewPassword',
|
'newpassword' => Friendica\Console\NewPassword::class,
|
||||||
'php2po' => __NAMESPACE__ . '\Console\PhpToPo',
|
'php2po' => Friendica\Console\PhpToPo::class,
|
||||||
'po2php' => __NAMESPACE__ . '\Console\PoToPhp',
|
'po2php' => Friendica\Console\PoToPhp::class,
|
||||||
'typo' => __NAMESPACE__ . '\Console\Typo',
|
'typo' => Friendica\Console\Typo::class,
|
||||||
'postupdate' => __NAMESPACE__ . '\Console\PostUpdate',
|
'postupdate' => Friendica\Console\PostUpdate::class,
|
||||||
'serverblock' => __NAMESPACE__ . '\Console\ServerBlock',
|
'serverblock' => Friendica\Console\ServerBlock::class,
|
||||||
'storage' => __NAMESPACE__ . '\Console\Storage',
|
'storage' => Friendica\Console\Storage::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
protected function doExecute()
|
protected function doExecute()
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Test\src\Core\Console;
|
namespace Friendica\Test\src\Console;
|
||||||
|
|
||||||
|
use Friendica\Console\AutomaticInstallation;
|
||||||
use Friendica\Core\Config\Cache\ConfigCache;
|
use Friendica\Core\Config\Cache\ConfigCache;
|
||||||
use Friendica\Core\Console\AutomaticInstallation;
|
|
||||||
use Friendica\Core\Installer;
|
use Friendica\Core\Installer;
|
||||||
use Friendica\Core\Logger;
|
use Friendica\Core\Logger;
|
||||||
use Friendica\Test\Util\DBAMockTrait;
|
use Friendica\Test\Util\DBAMockTrait;
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Test\src\Core\Console;
|
namespace Friendica\Test\src\Console;
|
||||||
|
|
||||||
use Friendica\App\Mode;
|
use Friendica\App\Mode;
|
||||||
use Friendica\Core\Console\Config;
|
use Friendica\Console\Config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @runTestsInSeparateProcesses
|
* @runTestsInSeparateProcesses
|
||||||
|
@ -116,7 +116,7 @@ class ConfigConsoleTest extends ConsoleTest
|
||||||
$executable = $this->consoleArgv[0];
|
$executable = $this->consoleArgv[0];
|
||||||
$assertion = <<<CONF
|
$assertion = <<<CONF
|
||||||
Executable: {$executable}
|
Executable: {$executable}
|
||||||
Class: Friendica\Core\Console\Config
|
Class: Friendica\Console\Config
|
||||||
Arguments: array (
|
Arguments: array (
|
||||||
0 => 'test',
|
0 => 'test',
|
||||||
1 => 'it',
|
1 => 'it',
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Test\src\Core\Console;
|
namespace Friendica\Test\src\Console;
|
||||||
|
|
||||||
use Asika\SimpleConsole\Console;
|
use Asika\SimpleConsole\Console;
|
||||||
use Friendica\Test\MockedTest;
|
use Friendica\Test\MockedTest;
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Friendica\Test\src\Core\Console;
|
namespace Friendica\Test\src\Console;
|
||||||
|
|
||||||
use Friendica\Core\Console\ServerBlock;
|
use Friendica\Console\ServerBlock;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @runTestsInSeparateProcesses
|
* @runTestsInSeparateProcesses
|
Loading…
Reference in New Issue
Block a user