Skip to content

Commit

Permalink
move Constants to Helpers directory to reduce clutter in MsgApi direc…
Browse files Browse the repository at this point in the history
…tory
  • Loading branch information
pavarnos committed Aug 14, 2018
1 parent 149200b commit bb06ba8
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Threema/Console/Symfony/AbstractLocalCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Threema\MsgApi\ConnectionFactory;
use Threema\MsgApi\Constants;
use Threema\MsgApi\Encryptor\AbstractEncryptor;
use Threema\MsgApi\Exceptions\InvalidArgumentException;
use Threema\MsgApi\Helpers\Constants;

abstract class AbstractLocalCommand extends Command
{
Expand Down
2 changes: 1 addition & 1 deletion src/Threema/Console/Symfony/AbstractNetworkedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Threema\MsgApi\Connection;
use Threema\MsgApi\Constants;
use Threema\MsgApi\Exceptions\Exception;
use Threema\MsgApi\Exceptions\InvalidArgumentException;
use Threema\MsgApi\Helpers\Constants;
use Threema\MsgApi\Response\Response;

abstract class AbstractNetworkedCommand extends AbstractLocalCommand
Expand Down
2 changes: 1 addition & 1 deletion src/Threema/Console/Symfony/VersionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Symfony\Component\Console\Helper\TableSeparator;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Threema\MsgApi\Constants;
use Threema\MsgApi\Helpers\Constants;

class VersionCommand extends AbstractLocalCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

declare(strict_types=1);

namespace Threema\MsgApi;
namespace Threema\MsgApi\Helpers;

final class Constants
{
Expand Down
2 changes: 0 additions & 2 deletions src/Threema/MsgApi/Helpers/KeyPrefix.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

namespace Threema\MsgApi\Helpers;

use Threema\MsgApi\Constants;

class KeyPrefix
{
/**
Expand Down
8 changes: 4 additions & 4 deletions src/Threema/MsgApi/HttpDriver/CurlHttpDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

namespace Threema\MsgApi\HttpDriver;

use Threema\MsgApi\Request\RequestInterface;
use Threema\MsgApi\Request\JsonRequestInterface;
use Threema\MsgApi\Request\MultiPartRequestInterface;
use Threema\MsgApi\Constants;
use Threema\MsgApi\Exceptions\HttpException;
use Threema\MsgApi\Helpers\Constants;
use Threema\MsgApi\Helpers\Url;
use Threema\MsgApi\Request\JsonRequestInterface;
use Threema\MsgApi\Request\MultiPartRequestInterface;
use Threema\MsgApi\Request\RequestInterface;
use Threema\MsgApi\Response\Response;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Tester\CommandTester;
use Threema\MsgApi\ConnectionFactory;
use Threema\MsgApi\Constants;
use Threema\MsgApi\Helpers\Constants;

class DerivePublicKeyCommandTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Threema/Console/Symfony/EncryptDecryptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Tester\CommandTester;
use Threema\MsgApi\ConnectionFactory;
use Threema\MsgApi\Constants;
use Threema\MsgApi\Helpers\Constants;
use Threema\MsgApi\Helpers\KeyPair;

class EncryptDecryptTest extends TestCase
Expand Down

0 comments on commit bb06ba8

Please sign in to comment.