Skip to content

Commit

Permalink
fix: namespace typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Bellanda committed Mar 2, 2020
1 parent 1088a48 commit 43942e0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
13 changes: 6 additions & 7 deletions src/Service/NotificationService.php
@@ -1,13 +1,12 @@
<?php

namespace Esc\Service;
namespace Esc\Notification\Service;

use Esc\Notification\Entity\Notification;
use Esc\Notification\Entity\Notification as NotificationEntity;
use Esc\Notification\Repository\NotificationRepository;
use App\ValueObjects\Notification\Status;
use App\ValueObjects\Notification\Title;
use App\ValueObjects\Notification\Username;
use Esc\Notification\ValueObjects\Notification\Status;
use Esc\Notification\ValueObjects\Notification\Title;
use Esc\Notification\ValueObjects\Notification\Username;
use Assert\AssertionFailedException;
use Doctrine\ORM\EntityManagerInterface;
use Esc\MercurePublisherTrait;
Expand Down Expand Up @@ -45,7 +44,7 @@ public function __construct(
*/
public function success(int $id, string $message = ''): void
{
$this->update($id, NotificationEntity::SUCCESS_STATE, $message);
$this->update($id, Notification::SUCCESS_STATE, $message);
}

/**
Expand All @@ -55,7 +54,7 @@ public function success(int $id, string $message = ''): void
*/
public function error(int $id, string $message = ''): void
{
$this->update($id, NotificationEntity::ERROR_STATE, $message);
$this->update($id, Notification::ERROR_STATE, $message);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/ValueObjects/Notification/Message.php
@@ -1,7 +1,7 @@
<?php


namespace App\ValueObjects\Notification;
namespace Esc\Notification\ValueObjects\Notification;

use Assert\Assertion;
use Assert\AssertionFailedException;
Expand Down
2 changes: 1 addition & 1 deletion src/ValueObjects/Notification/Status.php
@@ -1,7 +1,7 @@
<?php


namespace App\ValueObjects\Notification;
namespace Esc\Notification\ValueObjects\Notification;

use Esc\Notification\Entity\Notification;
use Assert\Assertion;
Expand Down
2 changes: 1 addition & 1 deletion src/ValueObjects/Notification/Title.php
@@ -1,7 +1,7 @@
<?php


namespace App\ValueObjects\Notification;
namespace Esc\Notification\ValueObjects\Notification;

use Assert\Assertion;
use Assert\AssertionFailedException;
Expand Down
2 changes: 1 addition & 1 deletion src/ValueObjects/Notification/Username.php
@@ -1,7 +1,7 @@
<?php


namespace App\ValueObjects\Notification;
namespace Esc\Notification\ValueObjects\Notification;

use Assert\Assertion;
use Assert\AssertionFailedException;
Expand Down

0 comments on commit 43942e0

Please sign in to comment.