Skip to content

Commit

Permalink
Update media and logger modules namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
voltan committed Nov 16, 2024
1 parent 6c3e191 commit 3f4d247
Show file tree
Hide file tree
Showing 20 changed files with 42 additions and 42 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 Logger;
namespace Pi\Logger;

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

namespace Logger\Factory\Handler\Admin\System;
namespace Pi\Logger\Factory\Handler\Admin\System;

use Laminas\ServiceManager\Factory\FactoryInterface;
use Logger\Handler\Admin\System\ListHandler;
use Logger\Service\LoggerService;
use Pi\Logger\Handler\Admin\System\ListHandler;
use Pi\Logger\Service\LoggerService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
Expand Down
6 changes: 3 additions & 3 deletions src/Factory/Handler/Admin/User/ListHandlerFactory.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Logger\Factory\Handler\Admin\User;
namespace Pi\Logger\Factory\Handler\Admin\User;

use Laminas\ServiceManager\Factory\FactoryInterface;
use Logger\Handler\Admin\User\ListHandler;
use Logger\Service\LoggerService;
use Pi\Logger\Handler\Admin\User\ListHandler;
use Pi\Logger\Service\LoggerService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
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 Logger\Factory\Handler;
namespace Pi\Logger\Factory\Handler;

use Laminas\ServiceManager\Factory\FactoryInterface;
use Logger\Handler\InstallerHandler;
use Pi\Core\Service\InstallerService;
use Pi\Logger\Handler\InstallerHandler;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
Expand Down
6 changes: 3 additions & 3 deletions src/Factory/Middleware/LoggerRequestMiddlewareFactory.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Logger\Factory\Middleware;
namespace Pi\Logger\Factory\Middleware;

use Laminas\ServiceManager\Factory\FactoryInterface;
use Logger\Middleware\LoggerRequestMiddleware;
use Logger\Service\LoggerService;
use Pi\Core\Handler\ErrorHandler;
use Pi\Logger\Middleware\LoggerRequestMiddleware;
use Pi\Logger\Service\LoggerService;
use Psr\Container\ContainerInterface;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Logger\Factory\Middleware;
namespace Pi\Logger\Factory\Middleware;

use Laminas\ServiceManager\Factory\FactoryInterface;
use Logger\Middleware\LoggerRequestResponseMiddleware;
use Logger\Service\LoggerService;
use Pi\Core\Handler\ErrorHandler;
use Pi\Logger\Middleware\LoggerRequestResponseMiddleware;
use Pi\Logger\Service\LoggerService;
use Psr\Container\ContainerInterface;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;
Expand Down
10 changes: 5 additions & 5 deletions src/Factory/Repository/LogRepositoryFactory.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Logger\Factory\Repository;
namespace Pi\Logger\Factory\Repository;

use Psr\Container\ContainerInterface;
use Laminas\Db\Adapter\AdapterInterface;
use Laminas\Hydrator\ReflectionHydrator;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Logger\Model\System;
use Logger\Model\User;
use Logger\Repository\LogRepository;
use Pi\Logger\Model\System;
use Pi\Logger\Model\User;
use Pi\Logger\Repository\LogRepository;
use Psr\Container\ContainerInterface;

class LogRepositoryFactory implements FactoryInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Factory/Service/LoggerServiceFactory.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Logger\Factory\Service;
namespace Pi\Logger\Factory\Service;

use Laminas\ServiceManager\Factory\FactoryInterface;
use Logger\Repository\LogRepositoryInterface;
use Logger\Service\LoggerService;
use Pi\Core\Service\UtilityService;
use Pi\Logger\Repository\LogRepositoryInterface;
use Pi\Logger\Service\LoggerService;
use Psr\Container\ContainerInterface;

class LoggerServiceFactory implements FactoryInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Handler/Admin/System/ListHandler.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Logger\Handler\Admin\System;
namespace Pi\Logger\Handler\Admin\System;

use Laminas\Diactoros\Response\JsonResponse;
use Logger\Service\LoggerService;
use Pi\Logger\Service\LoggerService;
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/User/ListHandler.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Logger\Handler\Admin\User;
namespace Pi\Logger\Handler\Admin\User;

use Laminas\Diactoros\Response\JsonResponse;
use Logger\Service\LoggerService;
use Pi\Logger\Service\LoggerService;
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 Logger\Handler;
namespace Pi\Logger\Handler;

use Laminas\Diactoros\Response\JsonResponse;
use Pi\Core\Service\InstallerService;
Expand Down
4 changes: 2 additions & 2 deletions src/Middleware/LoggerRequestMiddleware.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Logger\Middleware;
namespace Pi\Logger\Middleware;

use Logger\Service\LoggerService;
use Pi\Core\Handler\ErrorHandler;
use Pi\Logger\Service\LoggerService;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
Expand Down
4 changes: 2 additions & 2 deletions src/Middleware/LoggerRequestResponseMiddleware.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Logger\Middleware;
namespace Pi\Logger\Middleware;

use Logger\Service\LoggerService;
use Pi\Core\Handler\ErrorHandler;
use Pi\Logger\Service\LoggerService;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/System.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Logger\Model;
namespace Pi\Logger\Model;

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

namespace Logger\Model;
namespace Pi\Logger\Model;

class User
{
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 Logger;
namespace Pi\Logger;

class Module
{
Expand Down
6 changes: 3 additions & 3 deletions src/Repository/LogRepository.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Logger\Repository;
namespace Pi\Logger\Repository;

use Laminas\Db\Adapter\AdapterInterface;
use Laminas\Db\Adapter\Driver\ResultInterface;
Expand All @@ -9,8 +9,8 @@
use Laminas\Db\Sql\Predicate\Expression;
use Laminas\Db\Sql\Sql;
use Laminas\Hydrator\HydratorInterface;
use Logger\Model\System;
use Logger\Model\User;
use Pi\Logger\Model\System;
use Pi\Logger\Model\User;
use RuntimeException;

class LogRepository implements LogRepositoryInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Repository/LogRepositoryInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Logger\Repository;
namespace Pi\Logger\Repository;

use Laminas\Db\ResultSet\HydratingResultSet;

Expand Down
4 changes: 2 additions & 2 deletions src/Service/LoggerService.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php

namespace Logger\Service;
namespace Pi\Logger\Service;

use Laminas\Db\Adapter\Adapter;
use Laminas\Log\Formatter\Json;
use Laminas\Log\Logger;
use Laminas\Log\Writer\Db;
use Laminas\Log\Writer\MongoDB;
use Laminas\Log\Writer\Stream;
use Logger\Repository\LogRepositoryInterface;
use MongoDB\Driver\Manager;
use Pi\Core\Service\UtilityService;
use Pi\Logger\Repository\LogRepositoryInterface;

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

namespace Logger\Service;
namespace Pi\Logger\Service;

interface ServiceInterface
{
Expand Down

0 comments on commit 3f4d247

Please sign in to comment.