Refactor of micropub request handling
Trying to organise the code better. It now temporarily doesn’t support update requests. Thought the spec defines them as SHOULD features and not MUST features. So safe for now :)
This commit is contained in:
parent
23c275945a
commit
83d10e1a70
26 changed files with 699 additions and 352 deletions
201
composer.lock
generated
201
composer.lock
generated
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "cd963bfd9cfb41beb4151e73ae98dc98",
|
||||
"content-hash": "1076b46fccbfe2c22f51fa6e904cfedf",
|
||||
"packages": [
|
||||
{
|
||||
"name": "aws/aws-crt-php",
|
||||
|
@ -10079,6 +10079,133 @@
|
|||
],
|
||||
"time": "2024-11-12T20:51:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "permafrost-dev/code-snippets",
|
||||
"version": "1.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/permafrost-dev/code-snippets.git",
|
||||
"reference": "639827ba7118a6b5521c861a265358ce5bd2b0c5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/permafrost-dev/code-snippets/zipball/639827ba7118a6b5521c861a265358ce5bd2b0c5",
|
||||
"reference": "639827ba7118a6b5521c861a265358ce5bd2b0c5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.3|^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"spatie/phpunit-snapshot-assertions": "^4.2"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Permafrost\\CodeSnippets\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Patrick Organ",
|
||||
"email": "patrick@permafrost.dev",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "Easily work with code snippets in PHP",
|
||||
"homepage": "https://github.com/permafrost-dev/code-snippets",
|
||||
"keywords": [
|
||||
"code",
|
||||
"code-snippets",
|
||||
"permafrost",
|
||||
"snippets"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/permafrost-dev/code-snippets/issues",
|
||||
"source": "https://github.com/permafrost-dev/code-snippets/tree/1.2.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://permafrost.dev/open-source",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/permafrost-dev",
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2021-07-27T05:15:06+00:00"
|
||||
},
|
||||
{
|
||||
"name": "permafrost-dev/php-code-search",
|
||||
"version": "1.12.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/permafrost-dev/php-code-search.git",
|
||||
"reference": "dbbca18f7dc2950e88121bb62f8ed2c697df799a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/permafrost-dev/php-code-search/zipball/dbbca18f7dc2950e88121bb62f8ed2c697df799a",
|
||||
"reference": "dbbca18f7dc2950e88121bb62f8ed2c697df799a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"nikic/php-parser": "^5.0",
|
||||
"permafrost-dev/code-snippets": "^1.2.0",
|
||||
"php": "^7.4|^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"spatie/phpunit-snapshot-assertions": "^4.2"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"src/Support/helpers.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Permafrost\\PhpCodeSearch\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Patrick Organ",
|
||||
"email": "patrick@permafrost.dev",
|
||||
"homepage": "https://permafrost.dev",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "Search PHP code for function & method calls, variable assignments, and more",
|
||||
"homepage": "https://github.com/permafrost-dev/php-code-search",
|
||||
"keywords": [
|
||||
"code",
|
||||
"permafrost",
|
||||
"php",
|
||||
"search",
|
||||
"sourcecode"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/permafrost-dev/php-code-search/issues",
|
||||
"source": "https://github.com/permafrost-dev/php-code-search/tree/1.12.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/sponsors/permafrost-dev",
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2024-09-03T04:33:45+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phar-io/manifest",
|
||||
"version": "2.0.4",
|
||||
|
@ -12169,6 +12296,78 @@
|
|||
],
|
||||
"time": "2025-03-21T08:56:30+00:00"
|
||||
},
|
||||
{
|
||||
"name": "spatie/x-ray",
|
||||
"version": "1.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/spatie/x-ray.git",
|
||||
"reference": "c1d8fe19951b752422d058fc911f14066e4ac346"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/spatie/x-ray/zipball/c1d8fe19951b752422d058fc911f14066e4ac346",
|
||||
"reference": "c1d8fe19951b752422d058fc911f14066e4ac346",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"permafrost-dev/code-snippets": "^1.2.0",
|
||||
"permafrost-dev/php-code-search": "^1.10.5",
|
||||
"php": "^8.0",
|
||||
"symfony/console": "^5.3|^6.0|^7.0",
|
||||
"symfony/finder": "^5.3|^6.0|^7.0",
|
||||
"symfony/yaml": "^5.3|^6.0|^7.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpstan/phpstan": "^2.0.0",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"spatie/phpunit-snapshot-assertions": "^4.2"
|
||||
},
|
||||
"bin": [
|
||||
"bin/x-ray"
|
||||
],
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Spatie\\XRay\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Patrick Organ",
|
||||
"email": "patrick@permafrost.dev",
|
||||
"homepage": "https://permafrost.dev",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "Quickly scan source code for calls to Ray",
|
||||
"homepage": "https://github.com/spatie/x-ray",
|
||||
"keywords": [
|
||||
"permafrost",
|
||||
"ray",
|
||||
"search",
|
||||
"spatie"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/spatie/x-ray/issues",
|
||||
"source": "https://github.com/spatie/x-ray/tree/1.2.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/sponsors/permafrost-dev",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/sponsors/spatie",
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2024-11-12T13:23:31+00:00"
|
||||
},
|
||||
{
|
||||
"name": "staabm/side-effects-detector",
|
||||
"version": "1.0.5",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue