Skip to content

Migrate plugin to the structure used since Shopware v5.2#4

Merged
mitelg merged 4 commits into
shopware5:masterfrom
philipreinken:new-plugin-system-compatibility
Nov 14, 2017
Merged

Migrate plugin to the structure used since Shopware v5.2#4
mitelg merged 4 commits into
shopware5:masterfrom
philipreinken:new-plugin-system-compatibility

Conversation

@philipreinken
Copy link
Copy Markdown
Contributor

The documentation refers to this plugin and the other adapters from shopwareLabs already have been migrated.

Comment thread SwagMediaSftp.php Outdated

namespace SwagMediaSftp;

require __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.

why is this necessary?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

needed for this lib "league/flysystem-sftp"

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.

is not used here. should be in the subscriber file, shouldn't it?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think it make no real difference but It could be a better place there :-)

Comment thread plugin.xml Outdated
<version>1.0.0</version>
<author>shopware AG</author>
<license>MIT</license>
<description>SFTP-Erweiterung für die Media Adapter</description>
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.

also translate the description

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment thread SwagMediaSftp.php Outdated

class SwagMediaSftp extends Plugin
{
public function update(UpdateContext $context)
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.

the overwriting of these four methods is completely unnecessary, as they do exakt the same as the parent methods

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Indeed, I didn't check that. Removed the methods

@mitelg mitelg merged commit 73b0b4a into shopware5:master Nov 14, 2017
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