diff --git a/config/module.config.php b/config/module.config.php index 44038a4..14386d2 100644 --- a/config/module.config.php +++ b/config/module.config.php @@ -5,11 +5,11 @@ use Laminas\Mvc\Middleware\PipeSpec; use Laminas\Router\Http\Literal; use Logger\Middleware\LoggerRequestResponseMiddleware; +use Pi\Core\Middleware\InstallerMiddleware; +use Pi\Core\Middleware\RequestPreparationMiddleware; use Pi\Core\Middleware\SecurityMiddleware; use User\Middleware\AuthenticationMiddleware; use User\Middleware\AuthorizationMiddleware; -use User\Middleware\InstallerMiddleware; -use User\Middleware\RequestPreparationMiddleware; return [ 'service_manager' => [ diff --git a/src/Factory/Handler/InstallerHandlerFactory.php b/src/Factory/Handler/InstallerHandlerFactory.php index b25d511..9abd683 100644 --- a/src/Factory/Handler/InstallerHandlerFactory.php +++ b/src/Factory/Handler/InstallerHandlerFactory.php @@ -2,14 +2,14 @@ namespace Notification\Factory\Handler; -use Psr\Container\ContainerInterface; use Laminas\ServiceManager\Factory\FactoryInterface; use Notification\Handler\InstallerHandler; +use Pi\Core\Service\InstallerService; use Psr\Container\ContainerExceptionInterface; +use Psr\Container\ContainerInterface; use Psr\Container\NotFoundExceptionInterface; use Psr\Http\Message\ResponseFactoryInterface; use Psr\Http\Message\StreamFactoryInterface; -use User\Service\InstallerService; class InstallerHandlerFactory implements FactoryInterface { diff --git a/src/Factory/Service/NotificationServiceFactory.php b/src/Factory/Service/NotificationServiceFactory.php index a3ba189..0b4a479 100644 --- a/src/Factory/Service/NotificationServiceFactory.php +++ b/src/Factory/Service/NotificationServiceFactory.php @@ -2,7 +2,6 @@ namespace Notification\Factory\Service; -use Psr\Container\ContainerInterface; use Laminas\ServiceManager\Factory\FactoryInterface; use Notification\Repository\NotificationRepositoryInterface; use Notification\Sender\Mail\LaminasMail; @@ -14,9 +13,10 @@ use Notification\Sender\SMS\PayamakYab; use Notification\Sender\SMS\Twilio; use Notification\Service\NotificationService; +use Pi\Core\Service\UtilityService; use Psr\Container\ContainerExceptionInterface; +use Psr\Container\ContainerInterface; use Psr\Container\NotFoundExceptionInterface; -use User\Service\UtilityService; class NotificationServiceFactory implements FactoryInterface { diff --git a/src/Handler/InstallerHandler.php b/src/Handler/InstallerHandler.php index eed48d8..a3475b8 100644 --- a/src/Handler/InstallerHandler.php +++ b/src/Handler/InstallerHandler.php @@ -3,13 +3,13 @@ namespace Notification\Handler; use Laminas\Diactoros\Response\JsonResponse; +use Pi\Core\Service\InstallerService; use Psr\Http\Message\ResponseFactoryInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\StreamFactoryInterface; use Psr\Http\Server\RequestHandlerInterface; use stdClass; -use User\Service\InstallerService; class InstallerHandler implements RequestHandlerInterface { diff --git a/src/Service/NotificationService.php b/src/Service/NotificationService.php index c80f0ca..064a7ec 100644 --- a/src/Service/NotificationService.php +++ b/src/Service/NotificationService.php @@ -11,7 +11,7 @@ use Notification\Sender\SMS\Nexmo; use Notification\Sender\SMS\PayamakYab; use Notification\Sender\SMS\Twilio; -use User\Service\UtilityService; +use Pi\Core\Service\UtilityService; class NotificationService implements ServiceInterface {