-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathOdSentry.php
38 lines (34 loc) · 998 Bytes
/
OdSentry.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* (c) Onedrop GmbH & Co. KG <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace OdSentry;
use OdSentry\Components\SentryCompilerPass;
use Shopware\Components\Plugin;
use Shopware\Components\Plugin\Context\ActivateContext;
use Shopware\Components\Plugin\Context\InstallContext;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class OdSentry extends Plugin
{
const PLUGIN_NAME = 'OdSentry';
/**
* Theme must be recompiled to include JS
*
* @param ActivateContext $context
*/
public function activate(ActivateContext $context)
{
$context->scheduleClearCache(InstallContext::CACHE_LIST_ALL);
}
/**
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new SentryCompilerPass());
}
}