Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
vendor/
node_modules/

# vendor_prefixed/ is intentionally NOT excluded: it's the php-scoper'd
# distribution artifact that ships to Composer consumers so they get the
# isolated dependency tree the architecture promises. Regenerated from
# `composer install && composer build`.
# vendor_prefixed/ is a generated distribution artifact. Release/plugin builds
# may include it, but source consumers should resolve dependencies through
# Composer instead of committed dependency snapshots.
vendor_prefixed/

# Build artifacts
build/
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
]
},
"require": {
"chubes4/html-to-blocks-converter": "dev-main",
"php": "^8.1",
"league/commonmark": "^2.5",
"league/html-to-markdown": "^5.1"
},
"require-dev": {
"chubes4/html-to-blocks-converter": "dev-main",
"humbug/php-scoper": "^0.18.19"
},
"minimum-stability": "dev",
Expand All @@ -36,7 +36,8 @@
},
{
"type": "vcs",
"url": "https://github.com/chubes4/html-to-blocks-converter"
"url": "https://github.com/chubes4/html-to-blocks-converter",
"no-api": true
}
],
"config": {
Expand Down
80 changes: 38 additions & 42 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions library.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@
$bfb_library_path = __DIR__;
$bfb_library_version = '0.8.1';

// Load Composer/php-scoper dependencies as soon as the bridge package is
// included, not when the winning BFB version initializes on
// `plugins_loaded:1`. Some dependencies (notably html-to-blocks-converter)
// register their own Action-Scheduler-style version callbacks at
// `plugins_loaded:0`; loading them from BFB's initializer would be too late.
// Load built/php-scoper dependencies when present. Composer consumers usually
// load dependencies through the root autoloader before this file runs, while
// standalone release builds can still ship a scoped vendor_prefixed/ artifact.
if ( file_exists( $bfb_library_path . '/vendor_prefixed/autoload.php' ) ) {
require_once $bfb_library_path . '/vendor_prefixed/autoload.php';
} elseif ( file_exists( $bfb_library_path . '/vendor/autoload.php' ) ) {
Expand Down
82 changes: 0 additions & 82 deletions vendor_prefixed/autoload.php

This file was deleted.

Loading
Loading