Skip to content

Commit

Permalink
chore!: change namespace to JobRouter\AddOn\Typo3Connector
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml committed Jan 24, 2024
1 parent d8b43bf commit 343162c
Show file tree
Hide file tree
Showing 50 changed files with 163 additions and 142 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed
- JobRouter REST Client in version 3 is required
- Namespace from `Brotkrueml\JobRouterConnector` to `JobRouter\Addon\Typo3Connector`

## [2.0.0] - 2023-05-31

Expand Down
6 changes: 3 additions & 3 deletions Classes/Command/GenerateKeyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Command;
namespace JobRouter\AddOn\Typo3Connector\Command;

use Brotkrueml\JobRouterConnector\Exception\KeyGenerationException;
use Brotkrueml\JobRouterConnector\Service\KeyGenerator;
use JobRouter\AddOn\Typo3Connector\Exception\KeyGenerationException;
use JobRouter\AddOn\Typo3Connector\Service\KeyGenerator;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down
10 changes: 5 additions & 5 deletions Classes/Controller/ConnectionListController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Controller;
namespace JobRouter\AddOn\Typo3Connector\Controller;

use Brotkrueml\JobRouterConnector\Domain\Repository\ConnectionRepository;
use Brotkrueml\JobRouterConnector\Exception\KeyFileException;
use Brotkrueml\JobRouterConnector\Extension;
use Brotkrueml\JobRouterConnector\Service\FileService;
use JobRouter\AddOn\RestClient\Information\Version;
use JobRouter\AddOn\Typo3Connector\Domain\Repository\ConnectionRepository;
use JobRouter\AddOn\Typo3Connector\Exception\KeyFileException;
use JobRouter\AddOn\Typo3Connector\Extension;
use JobRouter\AddOn\Typo3Connector\Service\FileService;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Backend\Routing\UriBuilder;
Expand Down
12 changes: 6 additions & 6 deletions Classes/Controller/ConnectionTestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Controller;
namespace JobRouter\AddOn\Typo3Connector\Controller;

use Brotkrueml\JobRouterConnector\Domain\Dto\ConnectionTestResult;
use Brotkrueml\JobRouterConnector\Domain\Repository\ConnectionRepository;
use Brotkrueml\JobRouterConnector\Exception\ConnectionNotFoundException;
use Brotkrueml\JobRouterConnector\Extension;
use Brotkrueml\JobRouterConnector\RestClient\RestClientFactoryInterface;
use JobRouter\AddOn\RestClient\Exception\HttpException;
use JobRouter\AddOn\Typo3Connector\Domain\Dto\ConnectionTestResult;
use JobRouter\AddOn\Typo3Connector\Domain\Repository\ConnectionRepository;
use JobRouter\AddOn\Typo3Connector\Exception\ConnectionNotFoundException;
use JobRouter\AddOn\Typo3Connector\Extension;
use JobRouter\AddOn\Typo3Connector\RestClient\RestClientFactoryInterface;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
Expand Down
2 changes: 1 addition & 1 deletion Classes/Domain/Dto/ConnectionTestResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Domain\Dto;
namespace JobRouter\AddOn\Typo3Connector\Domain\Dto;

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion Classes/Domain/Entity/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Domain\Entity;
namespace JobRouter\AddOn\Typo3Connector\Domain\Entity;

final class Connection
{
Expand Down
6 changes: 3 additions & 3 deletions Classes/Domain/Repository/ConnectionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Domain\Repository;
namespace JobRouter\AddOn\Typo3Connector\Domain\Repository;

use Brotkrueml\JobRouterConnector\Domain\Entity\Connection;
use Brotkrueml\JobRouterConnector\Exception\ConnectionNotFoundException;
use JobRouter\AddOn\Typo3Connector\Domain\Entity\Connection;
use JobRouter\AddOn\Typo3Connector\Exception\ConnectionNotFoundException;
use TYPO3\CMS\Core\Database\Connection as DatabaseConnection;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Database\Query\Restriction\HiddenRestriction;
Expand Down
4 changes: 2 additions & 2 deletions Classes/Evaluation/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Evaluation;
namespace JobRouter\AddOn\Typo3Connector\Evaluation;

use Brotkrueml\JobRouterConnector\Service\Crypt;
use JobRouter\AddOn\Typo3Connector\Service\Crypt;

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion Classes/Exception/ConnectionNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Exception;
namespace JobRouter\AddOn\Typo3Connector\Exception;

final class ConnectionNotFoundException extends \RuntimeException
{
Expand Down
2 changes: 1 addition & 1 deletion Classes/Exception/CryptException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Exception;
namespace JobRouter\AddOn\Typo3Connector\Exception;

final class CryptException extends \RuntimeException {}
2 changes: 1 addition & 1 deletion Classes/Exception/KeyFileException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Exception;
namespace JobRouter\AddOn\Typo3Connector\Exception;

final class KeyFileException extends \RuntimeException {}
2 changes: 1 addition & 1 deletion Classes/Exception/KeyGenerationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Exception;
namespace JobRouter\AddOn\Typo3Connector\Exception;

final class KeyGenerationException extends \RuntimeException {}
2 changes: 1 addition & 1 deletion Classes/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector;
namespace JobRouter\AddOn\Typo3Connector;

/**
* @internal
Expand Down
4 changes: 2 additions & 2 deletions Classes/Hooks/DropObfuscatedPasswordInConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Hooks;
namespace JobRouter\AddOn\Typo3Connector\Hooks;

use Brotkrueml\JobRouterConnector\Evaluation\Password;
use JobRouter\AddOn\Typo3Connector\Evaluation\Password;
use TYPO3\CMS\Core\DataHandling\DataHandler;

/**
Expand Down
12 changes: 6 additions & 6 deletions Classes/RestClient/RestClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\RestClient;
namespace JobRouter\AddOn\Typo3Connector\RestClient;

use Brotkrueml\JobRouterConnector\Domain\Entity\Connection;
use Brotkrueml\JobRouterConnector\Domain\Repository\ConnectionRepository;
use Brotkrueml\JobRouterConnector\Exception\CryptException;
use Brotkrueml\JobRouterConnector\Extension;
use Brotkrueml\JobRouterConnector\Service\Crypt;
use JobRouter\AddOn\RestClient\Client\ClientInterface;
use JobRouter\AddOn\RestClient\Client\RestClient;
use JobRouter\AddOn\RestClient\Configuration\ClientConfiguration;
use JobRouter\AddOn\RestClient\Configuration\ClientOptions;
use JobRouter\AddOn\RestClient\Exception\ExceptionInterface;
use JobRouter\AddOn\Typo3Connector\Domain\Entity\Connection;
use JobRouter\AddOn\Typo3Connector\Domain\Repository\ConnectionRepository;
use JobRouter\AddOn\Typo3Connector\Exception\CryptException;
use JobRouter\AddOn\Typo3Connector\Extension;
use JobRouter\AddOn\Typo3Connector\Service\Crypt;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;

final class RestClientFactory implements RestClientFactoryInterface
Expand Down
4 changes: 2 additions & 2 deletions Classes/RestClient/RestClientFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\RestClient;
namespace JobRouter\AddOn\Typo3Connector\RestClient;

use Brotkrueml\JobRouterConnector\Domain\Entity\Connection;
use JobRouter\AddOn\RestClient\Client\ClientInterface;
use JobRouter\AddOn\Typo3Connector\Domain\Entity\Connection;

interface RestClientFactoryInterface
{
Expand Down
4 changes: 2 additions & 2 deletions Classes/Service/Crypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Service;
namespace JobRouter\AddOn\Typo3Connector\Service;

use Brotkrueml\JobRouterConnector\Exception\CryptException;
use JobRouter\AddOn\Typo3Connector\Exception\CryptException;

/**
* @internal
Expand Down
6 changes: 3 additions & 3 deletions Classes/Service/FileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Service;
namespace JobRouter\AddOn\Typo3Connector\Service;

use Brotkrueml\JobRouterConnector\Exception\KeyFileException;
use Brotkrueml\JobRouterConnector\Extension;
use JobRouter\AddOn\Typo3Connector\Exception\KeyFileException;
use JobRouter\AddOn\Typo3Connector\Extension;
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Utility\GeneralUtility;
Expand Down
4 changes: 2 additions & 2 deletions Classes/Service/KeyGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* LICENSE.txt file that was distributed with this source code.
*/

namespace Brotkrueml\JobRouterConnector\Service;
namespace JobRouter\AddOn\Typo3Connector\Service;

use Brotkrueml\JobRouterConnector\Exception\KeyGenerationException;
use JobRouter\AddOn\Typo3Connector\Exception\KeyGenerationException;

class KeyGenerator
{
Expand Down
2 changes: 1 addition & 1 deletion Configuration/Backend/AjaxRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* LICENSE.txt file that was distributed with this source code.
*/

use Brotkrueml\JobRouterConnector\Controller\ConnectionTestController;
use JobRouter\AddOn\Typo3Connector\Controller\ConnectionTestController;

return [
'jobrouter_connection_test' => [
Expand Down
4 changes: 2 additions & 2 deletions Configuration/Backend/Modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* LICENSE.txt file that was distributed with this source code.
*/

use Brotkrueml\JobRouterConnector\Controller\ConnectionListController;
use Brotkrueml\JobRouterConnector\Extension;
use JobRouter\AddOn\Typo3Connector\Controller\ConnectionListController;
use JobRouter\AddOn\Typo3Connector\Extension;

return [
// "JobRouter" module group
Expand Down
4 changes: 2 additions & 2 deletions Configuration/Backend/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* LICENSE.txt file that was distributed with this source code.
*/

use Brotkrueml\JobRouterConnector\Controller\ConnectionListController;
use Brotkrueml\JobRouterConnector\Extension;
use JobRouter\AddOn\Typo3Connector\Controller\ConnectionListController;
use JobRouter\AddOn\Typo3Connector\Extension;

return [
Extension::MODULE_NAME => [
Expand Down
2 changes: 1 addition & 1 deletion Configuration/Icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* LICENSE.txt file that was distributed with this source code.
*/

use Brotkrueml\JobRouterConnector\Extension;
use JobRouter\AddOn\Typo3Connector\Extension;
use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;

return [
Expand Down
12 changes: 6 additions & 6 deletions Configuration/Services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@ services:
autoconfigure: true
public: false

Brotkrueml\JobRouterConnector\:
JobRouter\AddOn\Typo3Connector\:
resource: '../Classes/*'
exclude: '../Classes/{Domain/Entity,Domain/Model,Exception,Extension.php}'

Brotkrueml\JobRouterConnector\Utility\FileUtility:
JobRouter\AddOn\Typo3Connector\Utility\FileUtility:
public: true

Brotkrueml\JobRouterConnector\Controller\ConnectionListController:
JobRouter\AddOn\Typo3Connector\Controller\ConnectionListController:
tags: [ 'backend.controller' ]

Brotkrueml\JobRouterConnector\Controller\ConnectionTestController:
JobRouter\AddOn\Typo3Connector\Controller\ConnectionTestController:
tags: [ 'backend.controller' ]

Brotkrueml\JobRouterConnector\Command\GenerateKeyCommand:
JobRouter\AddOn\Typo3Connector\Command\GenerateKeyCommand:
tags:
- name: 'console.command'
command: 'jobrouter:connector:generatekey'
description: 'Generates a random key for encrypting and decrypting connection passwords'
schedulable: false

Brotkrueml\JobRouterConnector\Evaluation\Password:
JobRouter\AddOn\Typo3Connector\Evaluation\Password:
public: true
Loading

0 comments on commit 343162c

Please sign in to comment.