Skip to content

Commit

Permalink
Merge pull request #1 from pwnyprod/Shopware5.2Update
Browse files Browse the repository at this point in the history
update 5.2
  • Loading branch information
jochenmanz authored May 30, 2017
2 parents 63e7881 + 943528d commit d568b7e
Show file tree
Hide file tree
Showing 130 changed files with 5,476 additions and 281 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/vendor/
/.idea
/vendor
.idea
39 changes: 39 additions & 0 deletions ArvGoogleCertifiedShops.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

namespace ArvGoogleCertifiedShops;

use Shopware\Components\Plugin;
use Shopware\Components\Plugin\Context\UpdateContext;
use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
* Shopware-Plugin ArvGoogleCertifiedShops.
*/
class ArvGoogleCertifiedShops extends Plugin
{

/**
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
$container->setParameter('arv_google_certified_shops_new.plugin_dir', $this->getPath());
parent::build($container);
}

/**
* @param UpdateContext $context
*/
public function update(UpdateContext $context)
{
// Remove update zip if it exists
$updateFile = __DIR__ . '/ArvGoogleCertifiedShops.zip';
if (file_exists($updateFile)) {
unlink($updateFile);
}

parent::update($context);
}


}
276 changes: 0 additions & 276 deletions Bootstrap.php

This file was deleted.

Loading

0 comments on commit d568b7e

Please sign in to comment.