Namespace update (to make it consistent with what is declared in composer.json)
This commit is contained in:
@@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Controller;
|
namespace OaiSymfony\Controller;
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\Routing\Attribute\Route;
|
use Symfony\Component\Routing\Attribute\Route;
|
||||||
use App\Enum\OaiVerbs;
|
use OaiSymfony\Enum\OaiVerbs;
|
||||||
use App\OAI\OaiError;
|
use OaiSymfony\OAI\OaiError;
|
||||||
use App\OAI\Verb\{
|
use OaiSymfony\OAI\Verb\{
|
||||||
GetRecord,
|
GetRecord,
|
||||||
Identify,
|
Identify,
|
||||||
ListRecords,
|
ListRecords,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Enum;
|
namespace OaiSymfony\Enum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo Modify according to sets in DB or remove
|
* @todo Modify according to sets in DB or remove
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Enum;
|
namespace OaiSymfony\Enum;
|
||||||
|
|
||||||
enum OaiVerbs: string
|
enum OaiVerbs: string
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI\Exception;
|
namespace OaiSymfony\OAI\Exception;
|
||||||
|
|
||||||
final class IdentifierNotFoundException extends \Exception
|
final class IdentifierNotFoundException extends \Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI\Exception;
|
namespace OaiSymfony\OAI\Exception;
|
||||||
|
|
||||||
final class InvalidFormatException extends \Exception
|
final class InvalidFormatException extends \Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI\Exception;
|
namespace OaiSymfony\OAI\Exception;
|
||||||
|
|
||||||
final class InvalidTokenException extends \Exception
|
final class InvalidTokenException extends \Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI;
|
namespace OaiSymfony\OAI;
|
||||||
|
|
||||||
use \DOMDocument;
|
use \DOMDocument;
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI;
|
namespace OaiSymfony\OAI;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo Use Symfony serializer to generate XML?
|
* @todo Use Symfony serializer to generate XML?
|
||||||
*/
|
*/
|
||||||
use App\OAI\OaiBase;
|
use OaiSymfony\OAI\OaiBase;
|
||||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||||
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
||||||
use Symfony\Component\Serializer\Serializer;
|
use Symfony\Component\Serializer\Serializer;
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI;
|
namespace OaiSymfony\OAI;
|
||||||
|
|
||||||
use AC\DB\Connection;
|
use AC\DB\Connection;
|
||||||
use App\OAI\RecordOaiInterface;
|
use OaiSymfony\OAI\RecordOaiInterface;
|
||||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||||
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
||||||
use Symfony\Component\Serializer\Serializer;
|
use Symfony\Component\Serializer\Serializer;
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI;
|
namespace OaiSymfony\OAI;
|
||||||
|
|
||||||
use App\OAI\RecordOaiInterface;
|
use OaiSymfony\OAI\RecordOaiInterface;
|
||||||
use App\OAI\Exception\IdentifierNotFoundException;
|
use OaiSymfony\OAI\Exception\IdentifierNotFoundException;
|
||||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||||
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
||||||
use Symfony\Component\Serializer\Serializer;
|
use Symfony\Component\Serializer\Serializer;
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI;
|
namespace OaiSymfony\OAI;
|
||||||
|
|
||||||
use App\OAI\RecordOaiInterface;
|
use OaiSymfony\OAI\RecordOaiInterface;
|
||||||
use App\OAI\Exception\IdentifierNotFoundException;
|
use OaiSymfony\OAI\Exception\IdentifierNotFoundException;
|
||||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||||
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
||||||
use Symfony\Component\Serializer\Serializer;
|
use Symfony\Component\Serializer\Serializer;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI;
|
namespace OaiSymfony\OAI;
|
||||||
|
|
||||||
interface RecordOaiInterface
|
interface RecordOaiInterface
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI;
|
namespace OaiSymfony\OAI;
|
||||||
|
|
||||||
use App\OAI\Exception\InvalidTokenException;
|
use OaiSymfony\OAI\Exception\InvalidTokenException;
|
||||||
use DateTime;
|
use DateTime;
|
||||||
use DateTimeImmutable;
|
use DateTimeImmutable;
|
||||||
use Symfony\Component\Serializer\Attribute\Ignore;
|
use Symfony\Component\Serializer\Attribute\Ignore;
|
||||||
|
|||||||
@@ -2,17 +2,17 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI\Verb;
|
namespace OaiSymfony\OAI\Verb;
|
||||||
|
|
||||||
use App\OAI\{
|
use OaiSymfony\OAI\{
|
||||||
RecordOaiDc,
|
RecordOaiDc,
|
||||||
RecordOaiDataCite,
|
RecordOaiDataCite,
|
||||||
RecordOaiInterface
|
RecordOaiInterface
|
||||||
};
|
};
|
||||||
use App\OAI\Exception\IdentifierNotFoundException;
|
use OaiSymfony\OAI\Exception\IdentifierNotFoundException;
|
||||||
use App\OAI\Exception\InvalidFormatException;
|
use OaiSymfony\OAI\Exception\InvalidFormatException;
|
||||||
use App\OAI\OaiBase;
|
use OaiSymfony\OAI\OaiBase;
|
||||||
use App\OAI\OaiError;
|
use OaiSymfony\OAI\OaiError;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Metadata for a single OAI record
|
* Metadata for a single OAI record
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI\Verb;
|
namespace OaiSymfony\OAI\Verb;
|
||||||
|
|
||||||
use App\OAI\OaiIdentify;
|
use OaiSymfony\OAI\OaiIdentify;
|
||||||
use App\OAI\OaiBase;
|
use OaiSymfony\OAI\OaiBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Identify data for the repository
|
* Identify data for the repository
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI\Verb;
|
namespace OaiSymfony\OAI\Verb;
|
||||||
|
|
||||||
use App\OAI\ResumptionToken;
|
use OaiSymfony\OAI\ResumptionToken;
|
||||||
use App\OAI\Exception\InvalidTokenException;
|
use OaiSymfony\OAI\Exception\InvalidTokenException;
|
||||||
use App\OAI\OaiBase;
|
use OaiSymfony\OAI\OaiBase;
|
||||||
use App\OAI\OaiError;
|
use OaiSymfony\OAI\OaiError;
|
||||||
use AC\DB\Connection;
|
use AC\DB\Connection;
|
||||||
use \Symfony\Component\HttpFoundation\Request;
|
use \Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI\Verb;
|
namespace OaiSymfony\OAI\Verb;
|
||||||
|
|
||||||
use App\OAI\OaiBase;
|
use OaiSymfony\OAI\OaiBase;
|
||||||
use App\OAI\OaiError;
|
use OaiSymfony\OAI\OaiError;
|
||||||
use AC\DB\Connection;
|
use AC\DB\Connection;
|
||||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||||
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
||||||
|
|||||||
@@ -2,17 +2,17 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI\Verb;
|
namespace OaiSymfony\OAI\Verb;
|
||||||
|
|
||||||
use App\OAI\{
|
use OaiSymfony\OAI\{
|
||||||
RecordOaiDc,
|
RecordOaiDc,
|
||||||
RecordOaiDataCite,
|
RecordOaiDataCite,
|
||||||
RecordOaiInterface,
|
RecordOaiInterface,
|
||||||
ResumptionToken
|
ResumptionToken
|
||||||
};
|
};
|
||||||
use App\OAI\Exception\InvalidTokenException;
|
use OaiSymfony\OAI\Exception\InvalidTokenException;
|
||||||
use App\OAI\OaiBase;
|
use OaiSymfony\OAI\OaiBase;
|
||||||
use App\OAI\OaiError;
|
use OaiSymfony\OAI\OaiError;
|
||||||
use \Symfony\Component\HttpFoundation\Request;
|
use \Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
use function \Symfony\Component\String\b;
|
use function \Symfony\Component\String\b;
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\OAI\Verb;
|
namespace OaiSymfony\OAI\Verb;
|
||||||
|
|
||||||
use App\OAI\OaiBase;
|
use OaiSymfony\OAI\OaiBase;
|
||||||
use App\OAI\OaiError;
|
use OaiSymfony\OAI\OaiError;
|
||||||
use AC\DB\Connection;
|
use AC\DB\Connection;
|
||||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||||
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
|
||||||
|
|||||||
Reference in New Issue
Block a user