-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathYjArticlePath.php
44 lines (31 loc) · 1021 Bytes
/
YjArticlePath.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
39
40
41
42
43
44
<?php
/**
* @copyright Copyright (c) 2017, Artashes Baghdasaryan
* @category Shopware
* @author Artashes Baghdasaryan
*/
namespace YjArticlePath;
use Shopware\Components\Plugin;
use Shopware\Components\Plugin\Context\InstallContext;
use Shopware\Components\Plugin\Context\UninstallContext;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class YjArticlePath extends Plugin
{
/**
* @param InstallContext $context
* @throws \Exception
*/
public function install(InstallContext $context)
{
parent::install($context);
}
public function uninstall(UninstallContext $context)
{
parent::uninstall($context);
}
public function build(ContainerBuilder $container) {
$container->setParameter('yj_article_path.plugin_dir', $this->getPath());
$container->setParameter('yj_article_path.view_dir', $this->getPath() . '/Resources/Views');
parent::build($container);
}
}