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

Sync: PSR-4 the Attachments sync module #12707

Merged
merged 3 commits into from Jun 17, 2019
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions composer.lock

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

5 changes: 4 additions & 1 deletion packages/sync/composer.json
Expand Up @@ -10,6 +10,9 @@
"autoload": {
"classmap": [
"/legacy"
]
],
"psr-4": {
"Automattic\\Jetpack\\Sync\\Modules\\": "src/modules/"
}
}
}
2 changes: 1 addition & 1 deletion packages/sync/legacy/class.jetpack-sync-modules.php
Expand Up @@ -21,7 +21,7 @@ class Jetpack_Sync_Modules {
'Jetpack_Sync_Module_Protect',
'Jetpack_Sync_Module_Comments',
'Jetpack_Sync_Module_Updates',
'Jetpack_Sync_Module_Attachments',
'Automattic\\Jetpack\\Sync\\Modules\\Attachments',
'Jetpack_Sync_Module_Meta',
'Jetpack_Sync_Module_Plugins',
'Jetpack_Sync_Module_Full_Sync',
Expand Down
@@ -1,6 +1,8 @@
<?php

class Jetpack_Sync_Module_Attachments extends Jetpack_Sync_Module {
namespace Automattic\Jetpack\Sync\Modules;

class Attachments extends \Jetpack_Sync_Module {
function name() {
return 'attachments';
}
Expand Down