Skip to content

Commit

Permalink
Replace "\Watchr\Application" namespace with "\Watchr\Console"
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioheleno committed Sep 27, 2023
1 parent 0015660 commit cb30654
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 33 deletions.
2 changes: 1 addition & 1 deletion config/dependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Psr\Clock\ClockInterface;
use Psr\Container\ContainerInterface;
use Symfony\Component\Clock\NativeClock;
use Watchr\Application\Services\HTTP\HttpCheckService;
use Watchr\Console\Services\HTTP\HttpCheckService;

return static function (ContainerBuilder $builder): void {
$builder->addDefinitions(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
declare(strict_types = 1);

namespace Watchr\Application\Contracts\HTTP;
namespace Watchr\Console\Contracts\HTTP;

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

namespace Watchr\Application\Contracts\HTTP;
namespace Watchr\Console\Contracts\HTTP;

enum HttpRequestMethodEnum: string {
case GET = 'GET';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types = 1);

namespace Watchr\Application\Contracts\Streams;
namespace Watchr\Console\Contracts\Streams;

use Stringable;

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

namespace Watchr\Application\DataObjects\HTTP;
namespace Watchr\Console\DataObjects\HTTP;

use Watchr\Application\Contracts\HTTP\HttpAuthenticationInterface;
use Watchr\Console\Contracts\HTTP\HttpAuthenticationInterface;

final class BasicAuthentication implements HttpAuthenticationInterface {
public readonly string $username;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types = 1);

namespace Watchr\Application\DataObjects\HTTP;
namespace Watchr\Console\DataObjects\HTTP;

use Watchr\Application\Contracts\HTTP\HttpAuthenticationInterface;
use Watchr\Console\Contracts\HTTP\HttpAuthenticationInterface;

final class BearerTokenAuthentication implements HttpAuthenticationInterface {
public readonly string $token;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types = 1);

namespace Watchr\Application\DataObjects\HTTP;
namespace Watchr\Console\DataObjects\HTTP;

use Watchr\Application\Contracts\HTTP\HttpAuthenticationInterface;
use Watchr\Console\Contracts\HTTP\HttpAuthenticationInterface;

final class CookieAuthentication implements HttpAuthenticationInterface {
public readonly string $name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types = 1);

namespace Watchr\Application\DataObjects\HTTP;
namespace Watchr\Console\DataObjects\HTTP;

use Watchr\Application\Contracts\HTTP\HttpAuthenticationInterface;
use Watchr\Console\Contracts\HTTP\HttpAuthenticationInterface;

final class DigestAuthentication implements HttpAuthenticationInterface {
public readonly string $username;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types = 1);

namespace Watchr\Application\DataObjects\HTTP;
namespace Watchr\Console\DataObjects\HTTP;

use Watchr\Application\Contracts\HTTP\HttpAuthenticationInterface;
use Watchr\Console\Contracts\HTTP\HttpAuthenticationInterface;

final class HeaderAuthentication implements HttpAuthenticationInterface {
public readonly string $name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types = 1);

namespace Watchr\Application\DataObjects\HTTP;
namespace Watchr\Console\DataObjects\HTTP;

use Watchr\Application\Contracts\HTTP\HttpAuthenticationInterface;
use Watchr\Console\Contracts\HTTP\HttpAuthenticationInterface;

final class HttpConfiguration {
public readonly HttpAuthenticationInterface|null $authentication;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types = 1);

namespace Watchr\Application\DataObjects\HTTP;
namespace Watchr\Console\DataObjects\HTTP;

use Watchr\Application\Contracts\Streams\StreamInterface;
use Watchr\Console\Contracts\Streams\StreamInterface;

final class HttpResponse {
public readonly int $appConnectTime;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?php
declare(strict_types = 1);

namespace Watchr\Application\Services\HTTP;
namespace Watchr\Console\Services\HTTP;

use CurlHandle;
use RuntimeException;
use Watchr\Application\Contracts\HTTP\HttpRequestMethodEnum;
use Watchr\Application\DataObjects\HTTP\BasicAuthentication;
use Watchr\Application\DataObjects\HTTP\BearerTokenAuthentication;
use Watchr\Application\DataObjects\HTTP\CookieAuthentication;
use Watchr\Application\DataObjects\HTTP\DigestAuthentication;
use Watchr\Application\DataObjects\HTTP\HeaderAuthentication;
use Watchr\Application\DataObjects\HTTP\HttpConfiguration;
use Watchr\Application\DataObjects\HTTP\HttpResponse;
use Watchr\Application\Streams\NullStream;
use Watchr\Application\Streams\Stream;
use Watchr\Console\Contracts\HTTP\HttpRequestMethodEnum;
use Watchr\Console\DataObjects\HTTP\BasicAuthentication;
use Watchr\Console\DataObjects\HTTP\BearerTokenAuthentication;
use Watchr\Console\DataObjects\HTTP\CookieAuthentication;
use Watchr\Console\DataObjects\HTTP\DigestAuthentication;
use Watchr\Console\DataObjects\HTTP\HeaderAuthentication;
use Watchr\Console\DataObjects\HTTP\HttpConfiguration;
use Watchr\Console\DataObjects\HTTP\HttpResponse;
use Watchr\Console\Streams\NullStream;
use Watchr\Console\Streams\Stream;

final class HttpCheckService {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php
declare(strict_types = 1);

namespace Watchr\Application\Streams;
namespace Watchr\Console\Streams;

use Watchr\Application\Contracts\Streams\StreamInterface;
use RuntimeException;
use Watchr\Console\Contracts\Streams\StreamInterface;

/**
* Does not store any data written to it.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
declare(strict_types = 1);

namespace Watchr\Application\Streams;
namespace Watchr\Console\Streams;

use InvalidArgumentException;
use RuntimeException;
use Watchr\Application\Contracts\Streams\StreamInterface;
use Watchr\Console\Contracts\Streams\StreamInterface;

/**
* PHP stream implementation
Expand Down

0 comments on commit cb30654

Please sign in to comment.