Skip to content

Commit

Permalink
Update notification module namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
voltan committed Nov 16, 2024
1 parent ab50040 commit b03a4c4
Show file tree
Hide file tree
Showing 42 changed files with 105 additions and 105 deletions.
2 changes: 1 addition & 1 deletion config/module.config.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Notification;
namespace Pi\Notification;

use Laminas\Mvc\Middleware\PipeSpec;
use Laminas\Router\Http\Literal;
Expand Down
8 changes: 4 additions & 4 deletions src/Factory/Handler/Admin/ListHandlerFactory.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Notification\Factory\Handler\Admin;
namespace Pi\Notification\Factory\Handler\Admin;

use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Handler\Admin\ListHandler;
use Notification\Service\NotificationService;
use Pi\Notification\Handler\Admin\ListHandler;
use Pi\Notification\Service\NotificationService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;
Expand Down
6 changes: 3 additions & 3 deletions src/Factory/Handler/Admin/SendHandlerFactory.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Notification\Factory\Handler\Admin;
namespace Pi\Notification\Factory\Handler\Admin;

use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Handler\Admin\SendHandler;
use Notification\Service\NotificationService;
use Pi\Notification\Handler\Admin\SendHandler;
use Pi\Notification\Service\NotificationService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use Psr\Http\Message\ResponseFactoryInterface;
Expand Down
8 changes: 4 additions & 4 deletions src/Factory/Handler/Api/CountHandlerFactory.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Notification\Factory\Handler\Api;
namespace Pi\Notification\Factory\Handler\Api;

use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Handler\Api\CountHandler;
use Notification\Service\NotificationService;
use Pi\Notification\Handler\Api\CountHandler;
use Pi\Notification\Service\NotificationService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;
Expand Down
8 changes: 4 additions & 4 deletions src/Factory/Handler/Api/ListHandlerFactory.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Notification\Factory\Handler\Api;
namespace Pi\Notification\Factory\Handler\Api;

use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Handler\Api\ListHandler;
use Notification\Service\NotificationService;
use Pi\Notification\Handler\Api\ListHandler;
use Pi\Notification\Service\NotificationService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;
Expand Down
6 changes: 3 additions & 3 deletions src/Factory/Handler/Api/SendHandlerFactory.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Notification\Factory\Handler\Api;
namespace Pi\Notification\Factory\Handler\Api;

use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Handler\Api\SendHandler;
use Notification\Service\NotificationService;
use Pi\Notification\Handler\Api\SendHandler;
use Pi\Notification\Service\NotificationService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use Psr\Http\Message\ResponseFactoryInterface;
Expand Down
6 changes: 3 additions & 3 deletions src/Factory/Handler/Api/UpdateHandlerFactory.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Notification\Factory\Handler\Api;
namespace Pi\Notification\Factory\Handler\Api;

use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Handler\Api\UpdateHandler;
use Notification\Service\NotificationService;
use Pi\Notification\Handler\Api\UpdateHandler;
use Pi\Notification\Service\NotificationService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use Psr\Http\Message\ResponseFactoryInterface;
Expand Down
4 changes: 2 additions & 2 deletions src/Factory/Handler/InstallerHandlerFactory.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Factory\Handler;
namespace Pi\Notification\Factory\Handler;

use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Handler\InstallerHandler;
use Pi\Core\Service\InstallerService;
use Pi\Notification\Handler\InstallerHandler;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
Expand Down
14 changes: 7 additions & 7 deletions src/Factory/Repository/NotificationRepositoryFactory.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php

namespace Notification\Factory\Repository;
namespace Pi\Notification\Factory\Repository;

use Psr\Container\ContainerInterface;
use Laminas\Db\Adapter\AdapterInterface;
use Laminas\Hydrator\ReflectionHydrator;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Model\IdValue\IdValue;
use Notification\Model\Message\Message;
use Notification\Model\Notification\Notification;
use Notification\Model\Storage;
use Notification\Repository\NotificationRepository;
use Pi\Notification\Model\IdValue\IdValue;
use Pi\Notification\Model\Message\Message;
use Pi\Notification\Model\Notification\Notification;
use Pi\Notification\Model\Storage;
use Pi\Notification\Repository\NotificationRepository;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;

class NotificationRepositoryFactory implements FactoryInterface
Expand Down
6 changes: 3 additions & 3 deletions src/Factory/Sender/Mail/LaminasMailFactory.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Factory\Sender\Mail;
namespace Pi\Notification\Factory\Sender\Mail;

use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Sender\Mail\LaminasMail;
use Pi\Notification\Sender\Mail\LaminasMail;
use Psr\Container\ContainerInterface;

class LaminasMailFactory implements FactoryInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Factory/Sender/Mail/MailerFactory.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Factory\Sender\Mail;
namespace Pi\Notification\Factory\Sender\Mail;

use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Sender\Mail\Mailer;
use Pi\Notification\Sender\Mail\Mailer;
use Psr\Container\ContainerInterface;

class MailerFactory implements FactoryInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Factory/Sender/Push/ApnsFactory.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Factory\Sender\Push;
namespace Pi\Notification\Factory\Sender\Push;

use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Sender\Push\Apns;
use Pi\Notification\Sender\Push\Apns;
use Psr\Container\ContainerInterface;

class ApnsFactory implements FactoryInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Factory/Sender/Push/FcmFactory.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Factory\Sender\Push;
namespace Pi\Notification\Factory\Sender\Push;

use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Sender\Push\Fcm;
use Pi\Notification\Sender\Push\Fcm;
use Psr\Container\ContainerInterface;

class FcmFactory implements FactoryInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Factory/Sender/SMS/KaveNegarFactory.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Factory\Sender\SMS;
namespace Pi\Notification\Factory\Sender\SMS;

use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Sender\SMS\KaveNegar;
use Pi\Notification\Sender\SMS\KaveNegar;
use Psr\Container\ContainerInterface;

class KaveNegarFactory implements FactoryInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Factory/Sender/SMS/NexmoFactory.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Factory\Sender\SMS;
namespace Pi\Notification\Factory\Sender\SMS;

use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Sender\SMS\Nexmo;
use Pi\Notification\Sender\SMS\Nexmo;
use Psr\Container\ContainerInterface;

class NexmoFactory implements FactoryInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Factory/Sender/SMS/PayamakYabFactory.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Factory\Sender\SMS;
namespace Pi\Notification\Factory\Sender\SMS;

use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Sender\SMS\PayamakYab;
use Pi\Notification\Sender\SMS\PayamakYab;

class PayamakYabFactory implements FactoryInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Factory/Sender/SMS/TwilioFactory.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Factory\Sender\SMS;
namespace Pi\Notification\Factory\Sender\SMS;

use Psr\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Sender\SMS\Twilio;
use Pi\Notification\Sender\SMS\Twilio;

class TwilioFactory implements FactoryInterface
{
Expand Down
22 changes: 11 additions & 11 deletions src/Factory/Service/NotificationServiceFactory.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?php

namespace Notification\Factory\Service;
namespace Pi\Notification\Factory\Service;

use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Repository\NotificationRepositoryInterface;
use Notification\Sender\Mail\LaminasMail;
use Notification\Sender\Mail\Mailer;
use Notification\Sender\Push\Apns;
use Notification\Sender\Push\Fcm;
use Notification\Sender\SMS\KaveNegar;
use Notification\Sender\SMS\Nexmo;
use Notification\Sender\SMS\PayamakYab;
use Notification\Sender\SMS\Twilio;
use Notification\Service\NotificationService;
use Pi\Core\Service\UtilityService;
use Pi\Notification\Repository\NotificationRepositoryInterface;
use Pi\Notification\Sender\Mail\LaminasMail;
use Pi\Notification\Sender\Mail\Mailer;
use Pi\Notification\Sender\Push\Apns;
use Pi\Notification\Sender\Push\Fcm;
use Pi\Notification\Sender\SMS\KaveNegar;
use Pi\Notification\Sender\SMS\Nexmo;
use Pi\Notification\Sender\SMS\PayamakYab;
use Pi\Notification\Sender\SMS\Twilio;
use Pi\Notification\Service\NotificationService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
Expand Down
4 changes: 2 additions & 2 deletions src/Handler/Admin/ListHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Handler\Admin;
namespace Pi\Notification\Handler\Admin;

use Fig\Http\Message\StatusCodeInterface;
use Laminas\Diactoros\Response\JsonResponse;
use Notification\Service\NotificationService;
use Pi\Notification\Service\NotificationService;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
Expand Down
4 changes: 2 additions & 2 deletions src/Handler/Admin/SendHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Handler\Admin;
namespace Pi\Notification\Handler\Admin;

use Fig\Http\Message\StatusCodeInterface;
use Laminas\Diactoros\Response\JsonResponse;
use Notification\Service\NotificationService;
use Pi\Notification\Service\NotificationService;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
Expand Down
4 changes: 2 additions & 2 deletions src/Handler/Api/CountHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Handler\Api;
namespace Pi\Notification\Handler\Api;

use Fig\Http\Message\StatusCodeInterface;
use Laminas\Diactoros\Response\JsonResponse;
use Notification\Service\NotificationService;
use Pi\Notification\Service\NotificationService;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
Expand Down
4 changes: 2 additions & 2 deletions src/Handler/Api/ListHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Handler\Api;
namespace Pi\Notification\Handler\Api;

use Fig\Http\Message\StatusCodeInterface;
use Laminas\Diactoros\Response\JsonResponse;
use Notification\Service\NotificationService;
use Pi\Notification\Service\NotificationService;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
Expand Down
4 changes: 2 additions & 2 deletions src/Handler/Api/SendHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Handler\Api;
namespace Pi\Notification\Handler\Api;

use Fig\Http\Message\StatusCodeInterface;
use Laminas\Diactoros\Response\JsonResponse;
use Notification\Service\NotificationService;
use Pi\Notification\Service\NotificationService;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
Expand Down
4 changes: 2 additions & 2 deletions src/Handler/Api/UpdateHandler.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Notification\Handler\Api;
namespace Pi\Notification\Handler\Api;

use Fig\Http\Message\StatusCodeInterface;
use Laminas\Diactoros\Response\JsonResponse;
use Notification\Service\NotificationService;
use Pi\Notification\Service\NotificationService;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/InstallerHandler.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Notification\Handler;
namespace Pi\Notification\Handler;

use Laminas\Diactoros\Response\JsonResponse;
use Pi\Core\Service\InstallerService;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Storage.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Notification\Model;
namespace Pi\Notification\Model;

class Storage
{
Expand Down
2 changes: 1 addition & 1 deletion src/Module.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Notification;
namespace Pi\Notification;

use Laminas\Mvc\MvcEvent;

Expand Down
Loading

0 comments on commit b03a4c4

Please sign in to comment.