From 3e967f0b9251422a66aae22114fc5b4bfb542120 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Sat, 13 Jul 2024 18:49:54 +0200 Subject: [PATCH] Rename package to OAIPMH2 --- src/App.php | 2 +- src/Configuration.php | 2 +- src/Console.php | 2 +- src/Console/AddRecordCommand.php | 2 +- src/Console/AddSetCommand.php | 2 +- src/Console/CsvImportCommand.php | 2 +- src/Console/DeleteRecordCommand.php | 2 +- src/Console/PruneDeletedRecordsCommand.php | 2 +- src/Console/PruneResumptionTokensCommand.php | 2 +- src/Console/UpdateFormatsCommand.php | 2 +- src/Database.php | 2 +- src/Document.php | 2 +- src/Entity.php | 2 +- src/Entity/Format.php | 2 +- src/Entity/Record.php | 2 +- src/Entity/Set.php | 2 +- src/Entity/Token.php | 2 +- src/Middleware.php | 2 +- src/Middleware/Dispatcher.php | 2 +- src/Middleware/ErrorHandler.php | 2 +- src/Middleware/GetRecord.php | 2 +- src/Middleware/Identify.php | 2 +- src/Middleware/ListIdentifiers.php | 2 +- src/Middleware/ListMetadataFormats.php | 2 +- src/Middleware/ListRecords.php | 2 +- src/Middleware/ListSets.php | 2 +- src/Result.php | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/App.php b/src/App.php index 7a37a14..9b117ea 100644 --- a/src/App.php +++ b/src/App.php @@ -29,7 +29,7 @@ use OCC\PSR15\QueueRequestHandler; * Main application of the OAI-PMH 2.0 Data Provider. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ class App { diff --git a/src/Configuration.php b/src/Configuration.php index c0f1e52..26ab08c 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -34,7 +34,7 @@ use Symfony\Component\Yaml\Yaml; * Reads, validates and provides configuration settings. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 * * @property-read string $repositoryName * @property-read string $adminEmail diff --git a/src/Console.php b/src/Console.php index 49f4099..c6626e1 100644 --- a/src/Console.php +++ b/src/Console.php @@ -33,7 +33,7 @@ use Symfony\Component\Console\Output\OutputInterface; * Base class for all OAI-PMH console commands. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ abstract class Console extends Command { diff --git a/src/Console/AddRecordCommand.php b/src/Console/AddRecordCommand.php index 5901123..01121c8 100644 --- a/src/Console/AddRecordCommand.php +++ b/src/Console/AddRecordCommand.php @@ -37,7 +37,7 @@ use Symfony\Component\Console\Output\OutputInterface; * Add or update a record in the database. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ #[AsCommand( name: 'oai:records:add', diff --git a/src/Console/AddSetCommand.php b/src/Console/AddSetCommand.php index 412eea0..43a171d 100644 --- a/src/Console/AddSetCommand.php +++ b/src/Console/AddSetCommand.php @@ -35,7 +35,7 @@ use Symfony\Component\Console\Output\OutputInterface; * Add or update a set in the database. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ #[AsCommand( name: 'oai:sets:add', diff --git a/src/Console/CsvImportCommand.php b/src/Console/CsvImportCommand.php index dfeb24e..cba0591 100644 --- a/src/Console/CsvImportCommand.php +++ b/src/Console/CsvImportCommand.php @@ -41,7 +41,7 @@ use Symfony\Component\Console\Output\OutputInterface; * Import records into database from a CSV file. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ #[AsCommand( name: 'oai:records:import:csv', diff --git a/src/Console/DeleteRecordCommand.php b/src/Console/DeleteRecordCommand.php index 1a1afad..9e64661 100644 --- a/src/Console/DeleteRecordCommand.php +++ b/src/Console/DeleteRecordCommand.php @@ -36,7 +36,7 @@ use Symfony\Component\Console\Output\OutputInterface; * Delete a record from database. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ #[AsCommand( name: 'oai:records:delete', diff --git a/src/Console/PruneDeletedRecordsCommand.php b/src/Console/PruneDeletedRecordsCommand.php index 4335af0..2ae72cd 100644 --- a/src/Console/PruneDeletedRecordsCommand.php +++ b/src/Console/PruneDeletedRecordsCommand.php @@ -35,7 +35,7 @@ use Symfony\Component\Console\Output\OutputInterface; * Prune deleted records from database. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ #[AsCommand( name: 'oai:records:prune', diff --git a/src/Console/PruneResumptionTokensCommand.php b/src/Console/PruneResumptionTokensCommand.php index 3bc43ce..267c3b8 100644 --- a/src/Console/PruneResumptionTokensCommand.php +++ b/src/Console/PruneResumptionTokensCommand.php @@ -33,7 +33,7 @@ use Symfony\Component\Console\Output\OutputInterface; * Prune expired resumption tokens from database. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ #[AsCommand( name: 'oai:tokens:prune', diff --git a/src/Console/UpdateFormatsCommand.php b/src/Console/UpdateFormatsCommand.php index fd92976..dd65bca 100644 --- a/src/Console/UpdateFormatsCommand.php +++ b/src/Console/UpdateFormatsCommand.php @@ -36,7 +36,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException; * Synchronize metadata formats in database with configuration. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ #[AsCommand( name: 'oai:formats:update', diff --git a/src/Database.php b/src/Database.php index 1999fb7..cd6eeb3 100644 --- a/src/Database.php +++ b/src/Database.php @@ -47,7 +47,7 @@ use Symfony\Component\Filesystem\Path; * Handles all database shenanigans. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 * * @template Formats of array * @template Records of array diff --git a/src/Document.php b/src/Document.php index 3a8fb88..8a4c3d5 100644 --- a/src/Document.php +++ b/src/Document.php @@ -33,7 +33,7 @@ use Psr\Http\Message\ServerRequestInterface; * An OAI-PMH XML response object. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ class Document { diff --git a/src/Entity.php b/src/Entity.php index cf9aa62..3db7ef7 100644 --- a/src/Entity.php +++ b/src/Entity.php @@ -30,7 +30,7 @@ use Symfony\Component\Validator\Validation; * Base class for all Doctrine/ORM entities. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ abstract class Entity { diff --git a/src/Entity/Format.php b/src/Entity/Format.php index 2f1a444..b7ad9b0 100644 --- a/src/Entity/Format.php +++ b/src/Entity/Format.php @@ -30,7 +30,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException; * Doctrine/ORM Entity for formats. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ #[ORM\Entity] #[ORM\Table(name: 'formats')] diff --git a/src/Entity/Record.php b/src/Entity/Record.php index 9b293f9..1804917 100644 --- a/src/Entity/Record.php +++ b/src/Entity/Record.php @@ -33,7 +33,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException; * Doctrine/ORM Entity for records. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ #[ORM\Entity] #[ORM\Table(name: 'records')] diff --git a/src/Entity/Set.php b/src/Entity/Set.php index a808106..46b4423 100644 --- a/src/Entity/Set.php +++ b/src/Entity/Set.php @@ -32,7 +32,7 @@ use Symfony\Component\Validator\Exception\ValidationFailedException; * Doctrine/ORM Entity for sets. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ #[ORM\Entity] #[ORM\Table(name: 'sets')] diff --git a/src/Entity/Token.php b/src/Entity/Token.php index fc9ea20..10f5313 100644 --- a/src/Entity/Token.php +++ b/src/Entity/Token.php @@ -32,7 +32,7 @@ use OCC\OaiPmh2\Entity; * Doctrine/ORM Entity for resumption tokens. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ #[ORM\Entity] #[ORM\Table(name: 'tokens')] diff --git a/src/Middleware.php b/src/Middleware.php index 1566728..c62f870 100644 --- a/src/Middleware.php +++ b/src/Middleware.php @@ -32,7 +32,7 @@ use Psr\Http\Message\ServerRequestInterface; * Base class for all OAI-PMH requests. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ abstract class Middleware extends AbstractMiddleware { diff --git a/src/Middleware/Dispatcher.php b/src/Middleware/Dispatcher.php index 8999ee4..b9d88f7 100644 --- a/src/Middleware/Dispatcher.php +++ b/src/Middleware/Dispatcher.php @@ -31,7 +31,7 @@ use Psr\Http\Message\ServerRequestInterface; * Validate and dispatch a OAI-PMH server request. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ class Dispatcher extends AbstractMiddleware { diff --git a/src/Middleware/ErrorHandler.php b/src/Middleware/ErrorHandler.php index ba88ad6..ce28f43 100644 --- a/src/Middleware/ErrorHandler.php +++ b/src/Middleware/ErrorHandler.php @@ -34,7 +34,7 @@ use Psr\Http\Message\StreamInterface; * Handles OAI-PMH errors. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ class ErrorHandler extends AbstractMiddleware { diff --git a/src/Middleware/GetRecord.php b/src/Middleware/GetRecord.php index e3dbd1a..43d59d2 100644 --- a/src/Middleware/GetRecord.php +++ b/src/Middleware/GetRecord.php @@ -33,7 +33,7 @@ use Psr\Http\Message\ServerRequestInterface; * @see https://www.openarchives.org/OAI/openarchivesprotocol.html#GetRecord * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ class GetRecord extends Middleware { diff --git a/src/Middleware/Identify.php b/src/Middleware/Identify.php index 1a03c92..2cff920 100644 --- a/src/Middleware/Identify.php +++ b/src/Middleware/Identify.php @@ -34,7 +34,7 @@ use Psr\Http\Message\ServerRequestInterface; * @see https://www.openarchives.org/OAI/openarchivesprotocol.html#Identify * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ class Identify extends Middleware { diff --git a/src/Middleware/ListIdentifiers.php b/src/Middleware/ListIdentifiers.php index 4bd6d4d..792b6ee 100644 --- a/src/Middleware/ListIdentifiers.php +++ b/src/Middleware/ListIdentifiers.php @@ -35,7 +35,7 @@ use Psr\Http\Message\ServerRequestInterface; * @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListIdentifiers * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ class ListIdentifiers extends Middleware { diff --git a/src/Middleware/ListMetadataFormats.php b/src/Middleware/ListMetadataFormats.php index bbdc69a..091dbb4 100644 --- a/src/Middleware/ListMetadataFormats.php +++ b/src/Middleware/ListMetadataFormats.php @@ -33,7 +33,7 @@ use Psr\Http\Message\ServerRequestInterface; * @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListMetadataFormats * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ class ListMetadataFormats extends Middleware { diff --git a/src/Middleware/ListRecords.php b/src/Middleware/ListRecords.php index a757caf..6cd01ec 100644 --- a/src/Middleware/ListRecords.php +++ b/src/Middleware/ListRecords.php @@ -27,7 +27,7 @@ namespace OCC\OaiPmh2\Middleware; * @see https://www.openarchives.org/OAI/openarchivesprotocol.html#ListRecords * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 */ class ListRecords extends ListIdentifiers { diff --git a/src/Middleware/ListSets.php b/src/Middleware/ListSets.php index 1925764..2cc34df 100644 --- a/src/Middleware/ListSets.php +++ b/src/Middleware/ListSets.php @@ -34,7 +34,7 @@ use Psr\Http\Message\ServerRequestInterface; * @see https://openarchives.org/OAI/openarchivesprotocol.html#ListSets * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 * * @template Sets of array */ diff --git a/src/Result.php b/src/Result.php index c767d19..1cf715a 100644 --- a/src/Result.php +++ b/src/Result.php @@ -35,7 +35,7 @@ use OCC\OaiPmh2\Entity\Token; * A database result set with optional resumption token. * * @author Sebastian Meyer - * @package opencultureconsulting/oai-pmh2 + * @package OAIPMH2 * * @template QueryResult of array * @implements Iterator