Skip to content

Commit

Permalink
Change namespace from Nmear to Core
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank.Markwort committed Sep 16, 2024
1 parent 2eb9ce6 commit 4ee5b70
Show file tree
Hide file tree
Showing 154 changed files with 379 additions and 378 deletions.
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
},
"autoload": {
"psr-4": {
"Nmea\\": "src/Nmea/",
"Core\\": "src/Core/",
"Modules\\": "src/Modules/"
}
},
"autoload-dev": {
"psr-4": {
"TestsNmea\\": "test/Nmea/",
"TestsModules\\": "test/Modules/"
"TestCore\\": "test/Core/",
"TestModules\\": "test/Modules/"
}
},
"require": {
Expand All @@ -31,6 +31,7 @@
"ext-memcached": "*",
"ext-bcmath": "*",
"ext-sockets": "*",
"ext-pdo": "*"
"ext-pdo": "*",
"frankmarkwort/math": "^1.0"
}
}
4 changes: 2 additions & 2 deletions src/Nmea/AbstractHeader.php → src/Core/AbstractHeader.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
declare(strict_types=1);

namespace Nmea;
namespace Core;

use Exception;
use Nmea\Protocol\Frames\Frame\Header\PackedTypeHelper;
use Core\Protocol\Frames\Frame\Header\PackedTypeHelper;

abstract class AbstractHeader
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Cache;
namespace Core\Cache;

abstract class AbstractRingBuffer
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Cache;
namespace Core\Cache;

class ArrayCache implements CacheInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Cache;
namespace Core\Cache;

use Iterator;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Cache;
namespace Core\Cache;

interface CacheInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Nmea/Cache/Memcached.php → src/Core/Cache/Memcached.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
declare(strict_types=1);

namespace Nmea\Cache;
namespace Core\Cache;

use Memcached as Cache;
use Nmea\Logger\Factory;
use Core\Logger\Factory;
use Exception;

class Memcached implements CacheInterface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Cache;
namespace Core\Cache;
class MemcachedRingBuffer extends AbstractRingBuffer
{
private const string SERVER_KEY = 'index';
Expand Down
2 changes: 1 addition & 1 deletion src/Nmea/Config/Config.php → src/Core/Config/Config.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Config;
namespace Core\Config;

class Config
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Config;
namespace Core\Config;

enum ConfigEnums
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Config;
namespace Core\Config;

use Exception;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @project Poseidon
*
*/
namespace Nmea\Config;
namespace Core\Config;

class ConfigFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @project Poseidon
*
*/
namespace Nmea\Config;
namespace Core\Config;

class ConfigPgn
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
declare(strict_types=1);
namespace Nmea\Config;
namespace Core\Config;

class PngFieldConfig
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php
declare(strict_types=1);

namespace Nmea\Cron;
namespace Core\Cron;

use Modules\Internal\Enums\DebugModeEnum;
use Modules\Internal\Interfaces\InterfaceObservableCronWorker;
use Modules\Internal\Interfaces\InterfaceObserverCronWorker;
use Nmea\Cache\CacheInterface;
use Nmea\Config\ConfigException;
use Nmea\Database\DatabaseInterface;
use Nmea\Parser\ParserException;
use Core\Cache\CacheInterface;
use Core\Config\ConfigException;
use Core\Database\DatabaseInterface;
use Core\Parser\ParserException;

abstract class AbstractCronWorker implements InterfaceObservableCronWorker
{
Expand Down
8 changes: 4 additions & 4 deletions src/Nmea/Cron/CronWorker.php → src/Core/Cron/CronWorker.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
declare(strict_types=1);

namespace Nmea\Cron;
namespace Core\Cron;

use Exception;
use Nmea\Config\ConfigException;
use Nmea\Logger\Factory;
use Nmea\Parser\ParserException;
use Core\Config\ConfigException;
use Core\Logger\Factory;
use Core\Parser\ParserException;
use TypeError;

final class CronWorker extends AbstractCronWorker
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Database;
namespace Core\Database;

use Exception;
use PDO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Database;
namespace Core\Database;

interface DatabaseInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types=1);

namespace Nmea\Database\Mapper;
namespace Core\Database\Mapper;

use Nmea\Database\DatabaseInterface;
use Core\Database\DatabaseInterface;

abstract class AbstractMapper
{
Expand Down
10 changes: 5 additions & 5 deletions src/Nmea/Deamon/Bootstrap.php → src/Core/Deamon/Bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php
declare(strict_types=1);

namespace Nmea\Deamon;
namespace Core\Deamon;

use Exception;
use Modules\Internal\Interfaces\InterfaceObservableRealtime;
use Modules\Internal\Interfaces\InterfaceObserverRealtime;
use Nmea\Cache\CacheInterface;
use Nmea\Logger\Factory;
use Nmea\Protocol\FramesFactory;
use Nmea\Protocol\Socket\Client;
use Core\Cache\CacheInterface;
use Core\Logger\Factory;
use Core\Protocol\FramesFactory;
use Core\Protocol\Socket\Client;

readonly class Bootstrap
{
Expand Down
2 changes: 1 addition & 1 deletion src/Nmea/Deamon/Serial.php → src/Core/Deamon/Serial.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Deamon;
namespace Core\Deamon;

use Exception;

Expand Down
18 changes: 9 additions & 9 deletions src/Nmea/Http/Bootstrap.php → src/Core/Http/Bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
declare(strict_types=1);

namespace Nmea\Http;
namespace Core\Http;

use Exception;
use Nmea\Cache\CacheInterface;
use Nmea\Config\ConfigException;
use Nmea\Logger\Factory;
use Nmea\Parser\Data\DataFacadenColection;
use Nmea\Parser\DataFacadeFactory;
use Nmea\Parser\ParserException;
use Nmea\View\Html;
use Nmea\View\Json;
use Core\Cache\CacheInterface;
use Core\Config\ConfigException;
use Core\Logger\Factory;
use Core\Parser\Data\DataFacadenColection;
use Core\Parser\DataFacadeFactory;
use Core\Parser\ParserException;
use Core\View\Html;
use Core\View\Json;

readonly class Bootstrap
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Logger;
namespace Core\Logger;

use Stringable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Logger;
namespace Core\Logger;

use Stringable;

Expand Down
4 changes: 2 additions & 2 deletions src/Nmea/Logger/Factory.php → src/Core/Logger/Factory.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types=1);

namespace Nmea\Logger;
namespace Core\Logger;

use Nmea\Logger\Logger\FileLogger;
use Core\Logger\Logger\FileLogger;

class Factory
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Logger;
namespace Core\Logger;

class InvalidArgumentException extends \InvalidArgumentException
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Logger;
namespace Core\Logger;

class LogLevel
{
Expand Down
4 changes: 2 additions & 2 deletions src/Nmea/Logger/Logger.php → src/Core/Logger/Logger.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types=1);

namespace Nmea\Logger;
namespace Core\Logger;

use Nmea\Logger\Logger\NullLogger;
use Core\Logger\Logger\NullLogger;

class Logger implements LoggerAwareInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types=1);

namespace Nmea\Logger\Logger;
namespace Core\Logger\Logger;

use Nmea\Logger\AbstractLogger;
use Core\Logger\AbstractLogger;
use Stringable;

class FileLogger extends AbstractLogger
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types=1);

namespace Nmea\Logger\Logger;
namespace Core\Logger\Logger;

use Nmea\Logger\LoggerInterface;
use Core\Logger\LoggerInterface;

class NullLogger implements LoggerInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Logger;
namespace Core\Logger;

interface LoggerAwareInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Logger;
namespace Core\Logger;

interface LoggerInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Math;
namespace Core\Math;

abstract class AbstractAngleRad
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace Nmea\Math;
namespace Core\Math;

enum EnumRange:string
{
Expand Down
Loading

0 comments on commit 4ee5b70

Please sign in to comment.