Skip to content

Did manager integration#465

Open
namithj wants to merge 7 commits intofairpm:release_1.4.0from
namithj:did-manager-integration
Open

Did manager integration#465
namithj wants to merge 7 commits intofairpm:release_1.4.0from
namithj:did-manager-integration

Conversation

@namithj
Copy link
Copy Markdown
Member

@namithj namithj commented Mar 28, 2026

Switch to DID Manager

namithj added 5 commits March 28, 2026 21:23
Add Dependency and start
Replace more did classes
Replace the manual $wp_filesystem->dirlist() loop and get_file_data() calls with PluginHeaderParser::parse() from did-manager-wordpress.  The parser handles both file and directory paths, finding the main
plugin file and extracting the Plugin ID header automatically.
Add Tests
remove unused phpcs blocker
@github-actions
Copy link
Copy Markdown
Contributor

PHPCS Run
const PLUGIN_DIR = __DIR__;
const PLUGIN_FILE = __FILE__;

require_once __DIR__ . '/vendor/autoload.php';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no vendor/ committed so we'll need to either include it or...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will come from composer install.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And where does composer install happen? I don't see it in the releases.yml.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will add it. Since the composer.json was already there, I expected the release action would already have the process.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done via 25fd338

Add vendor folder to release asset.

PS : Need to test this in a dummy release to confirm proper working.
@chuckadams
Copy link
Copy Markdown
Contributor

Just reminding myself: add a reusable (copy-paste) check in the plugin load process to check for vendor/ or existing autoloader, and render a friendly hint in wp_error to run composer install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants