Move Console namespace one level up

This commit is contained in:
Philipp Holzer 2019-05-02 23:17:35 +02:00
parent 2628da422a
commit d716a3326f
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
23 changed files with 46 additions and 44 deletions

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
use Friendica\Core\L10n;
use Friendica\Database\DBA;

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
use Asika\SimpleConsole\Console;
use Friendica\BaseObject;

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
use Asika\SimpleConsole\CommandArgsException;
use Friendica\App;

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
use Asika\SimpleConsole\CommandArgsException;
use Friendica\App;

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
/**
* Description of CreateDoxygen

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
use Friendica\Core;
use Friendica\Core\Update;

View file

@ -1,6 +1,6 @@
<?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.

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
/**
* Extracts translation strings from the Friendica project's files to be exported

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
use Friendica\Core\L10n;
use Friendica\Model\Contact;

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
use Friendica\Core;

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
use Friendica\Core\L10n;
use Friendica\Database\DBA;

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
/**
* Read a strings.php file and create messages.po in the same directory

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
/**
* Read a messages.po file and create strings.php in the same directory

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
use Friendica\Core\Config;
use Friendica\Core\L10n;

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
use Asika\SimpleConsole\CommandArgsException;
use Asika\SimpleConsole\Console;

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
use Asika\SimpleConsole\CommandArgsException;
use Friendica\Core\StorageManager;

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Console;
namespace Friendica\Console;
use Friendica\BaseObject;

View file

@ -2,6 +2,8 @@
namespace Friendica\Core;
use Friendica;
/**
* Description of Console
*
@ -47,24 +49,24 @@ HELP;
}
protected $subConsoles = [
'cache' => __NAMESPACE__ . '\Console\Cache',
'config' => __NAMESPACE__ . '\Console\Config',
'createdoxygen' => __NAMESPACE__ . '\Console\CreateDoxygen',
'docbloxerrorchecker' => __NAMESPACE__ . '\Console\DocBloxErrorChecker',
'dbstructure' => __NAMESPACE__ . '\Console\DatabaseStructure',
'extract' => __NAMESPACE__ . '\Console\Extract',
'globalcommunityblock' => __NAMESPACE__ . '\Console\GlobalCommunityBlock',
'globalcommunitysilence' => __NAMESPACE__ . '\Console\GlobalCommunitySilence',
'archivecontact' => __NAMESPACE__ . '\Console\ArchiveContact',
'autoinstall' => __NAMESPACE__ . '\Console\AutomaticInstallation',
'maintenance' => __NAMESPACE__ . '\Console\Maintenance',
'newpassword' => __NAMESPACE__ . '\Console\NewPassword',
'php2po' => __NAMESPACE__ . '\Console\PhpToPo',
'po2php' => __NAMESPACE__ . '\Console\PoToPhp',
'typo' => __NAMESPACE__ . '\Console\Typo',
'postupdate' => __NAMESPACE__ . '\Console\PostUpdate',
'serverblock' => __NAMESPACE__ . '\Console\ServerBlock',
'storage' => __NAMESPACE__ . '\Console\Storage',
'cache' => Friendica\Console\Cache::class,
'config' => Friendica\Console\Config::class,
'createdoxygen' => Friendica\Console\CreateDoxygen::class,
'docbloxerrorchecker' => Friendica\Console\DocBloxErrorChecker::class,
'dbstructure' => Friendica\Console\DatabaseStructure::class,
'extract' => Friendica\Console\Extract::class,
'globalcommunityblock' => Friendica\Console\GlobalCommunityBlock::class,
'globalcommunitysilence' => Friendica\Console\GlobalCommunitySilence::class,
'archivecontact' => Friendica\Console\ArchiveContact::class,
'autoinstall' => Friendica\Console\AutomaticInstallation::class,
'maintenance' => Friendica\Console\Maintenance::class,
'newpassword' => Friendica\Console\NewPassword::class,
'php2po' => Friendica\Console\PhpToPo::class,
'po2php' => Friendica\Console\PoToPhp::class,
'typo' => Friendica\Console\Typo::class,
'postupdate' => Friendica\Console\PostUpdate::class,
'serverblock' => Friendica\Console\ServerBlock::class,
'storage' => Friendica\Console\Storage::class,
];
protected function doExecute()

View file

@ -1,9 +1,9 @@
<?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\Console\AutomaticInstallation;
use Friendica\Core\Installer;
use Friendica\Core\Logger;
use Friendica\Test\Util\DBAMockTrait;

View file

@ -1,9 +1,9 @@
<?php
namespace Friendica\Test\src\Core\Console;
namespace Friendica\Test\src\Console;
use Friendica\App\Mode;
use Friendica\Core\Console\Config;
use Friendica\Console\Config;
/**
* @runTestsInSeparateProcesses
@ -116,7 +116,7 @@ class ConfigConsoleTest extends ConsoleTest
$executable = $this->consoleArgv[0];
$assertion = <<<CONF
Executable: {$executable}
Class: Friendica\Core\Console\Config
Class: Friendica\Console\Config
Arguments: array (
0 => 'test',
1 => 'it',

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Test\src\Core\Console;
namespace Friendica\Test\src\Console;
use Asika\SimpleConsole\Console;
use Friendica\Test\MockedTest;

View file

@ -1,8 +1,8 @@
<?php
namespace Friendica\Test\src\Core\Console;
namespace Friendica\Test\src\Console;
use Friendica\Core\Console\ServerBlock;
use Friendica\Console\ServerBlock;
/**
* @runTestsInSeparateProcesses