Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Data Liberation] Refactor Entity Readers class diagram #2096

Open
wants to merge 10 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ __pycache__
packages/playground/wordpress-builds/src/wordpress
packages/playground/wordpress-builds/public
packages/playground/sync/src/test/wp-*
packages/playground/data-liberation/tests/fixtures
packages/php-wasm/node/src/test/__test*
*.timestamp-1678999213403.mjs
.local
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/packages/playground/wordpress-builds/build/build-assets
/packages/playground/wordpress-builds/src/wordpress
/packages/playground/wordpress-builds/public/
/packages/playground/data-liberation/tests/fixtures
/packages/php-wasm/node/src/test/__test*
__pycache__
*.timestamp-1678999213403.mjs
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/data-liberation/blueprints-library
Submodule blueprints-library updated 0 files
30 changes: 21 additions & 9 deletions packages/playground/data-liberation/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,19 @@
require_once __DIR__ . '/blueprints-library/src/WordPress/AsyncHttp/Connection.php';
require_once __DIR__ . '/blueprints-library/src/WordPress/AsyncHttp/Client.php';

require_once __DIR__ . '/src/byte-readers/WP_Byte_Reader.php';
require_once __DIR__ . '/src/byte-readers/WP_File_Reader.php';
require_once __DIR__ . '/src/byte-readers/WP_GZ_File_Reader.php';
require_once __DIR__ . '/src/byte-readers/WP_Remote_File_Reader.php';
require_once __DIR__ . '/src/byte-readers/WP_Remote_File_Ranged_Reader.php';
require_once __DIR__ . '/blueprints-library/src/WordPress/Filesystem/WP_Abstract_Filesystem.php';
require_once __DIR__ . '/blueprints-library/src/WordPress/Filesystem/WP_Filesystem.php';
require_once __DIR__ . '/blueprints-library/src/WordPress/Filesystem/WP_File_Visitor_Event.php';
require_once __DIR__ . '/blueprints-library/src/WordPress/Filesystem/WP_Filesystem_Visitor.php';

require_once __DIR__ . '/blueprints-library/src/WordPress/ByteReader/WP_Byte_Reader.php';
require_once __DIR__ . '/blueprints-library/src/WordPress/ByteReader/WP_File_Reader.php';
require_once __DIR__ . '/blueprints-library/src/WordPress/ByteReader/WP_GZ_File_Reader.php';
require_once __DIR__ . '/blueprints-library/src/WordPress/ByteReader/WP_Remote_File_Reader.php';
require_once __DIR__ . '/blueprints-library/src/WordPress/ByteReader/WP_Remote_File_Ranged_Reader.php';

require_once __DIR__ . '/blueprints-library/src/WordPress/Zip/ZipStreamReader.php';
require_once __DIR__ . '/blueprints-library/src/WordPress/Zip/WP_Zip_Filesystem.php';

if (
! class_exists( 'WP_HTML_Tag_Processor' ) &&
Expand Down Expand Up @@ -49,22 +57,26 @@
require_once __DIR__ . '/src/block-markup/WP_Block_Markup_Url_Processor.php';
require_once __DIR__ . '/src/block-markup/WP_URL_In_Text_Processor.php';
require_once __DIR__ . '/src/block-markup/WP_URL.php';
require_once __DIR__ . '/src/block-markup/WP_HTML_To_Blocks.php';

require_once __DIR__ . '/src/entity-readers/WP_Entity_Reader.php';
require_once __DIR__ . '/src/entity-readers/WP_HTML_Entity_Reader.php';
require_once __DIR__ . '/src/entity-readers/WP_WXR_Entity_Reader.php';
require_once __DIR__ . '/src/entity-readers/WP_Directory_Tree_Entity_Reader.php';

require_once __DIR__ . '/src/xml-api/WP_XML_Decoder.php';
require_once __DIR__ . '/src/xml-api/WP_XML_Processor.php';
require_once __DIR__ . '/src/wxr/WP_WXR_Reader.php';
require_once __DIR__ . '/src/import/WP_Block_Object.php';
require_once __DIR__ . '/src/import/WP_Entity_Importer.php';
require_once __DIR__ . '/src/import/WP_File_Visitor.php';
require_once __DIR__ . '/src/import/WP_File_Visitor_Event.php';
require_once __DIR__ . '/src/import/WP_Imported_Entity.php';
require_once __DIR__ . '/src/import/WP_Attachment_Downloader.php';
require_once __DIR__ . '/src/import/WP_Attachment_Downloader_Event.php';
require_once __DIR__ . '/src/import/WP_Import_Session.php';
require_once __DIR__ . '/src/import/WP_Stream_Importer.php';
require_once __DIR__ . '/src/import/WP_Entity_Iterator_Chain.php';
require_once __DIR__ . '/src/import/WP_Retry_Frontloading_Iterator.php';

require_once __DIR__ . '/src/import/WP_Import_HTML_Processor.php';
require_once __DIR__ . '/src/import/WP_Import_Utils.php';
require_once __DIR__ . '/src/utf8_decoder.php';

// When running in Playground, the composer autoloader script sees CLI SAPI and
Expand Down
Binary file not shown.
2 changes: 2 additions & 0 deletions packages/playground/data-liberation/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<testsuite name="Application Test Suite">
<file>tests/WPWXRReaderTests.php</file>
<file>tests/WPRewriteUrlsTests.php</file>
<file>tests/WPHTMLToBlocksTests.php</file>
<file>tests/WPHTMLEntityReaderTests.php</file>
<file>tests/WPURLInTextProcessorTests.php</file>
<file>tests/WPBlockMarkupProcessorTests.php</file>
<file>tests/WPBlockMarkupUrlProcessorTests.php</file>
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/data-liberation/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"options": {
"cwd": "packages/playground/data-liberation",
"commands": [
"./vendor/bin/phpcs --standard=./phpcs.xml -s ./src ./*.php"
"./vendor/bin/phpcs --standard=./phpcs.xml -s ./src ./*.php "
],
"parallel": false
}
Expand All @@ -43,7 +43,7 @@
"options": {
"cwd": "packages/playground/data-liberation",
"commands": [
"./vendor/bin/phpcbf --standard=./phpcs.xml ./src ./*.php"
"./vendor/bin/phpcbf --standard=./phpcs.xml ./src ./*.php "
],
"parallel": false
}
Expand Down
Loading
Loading