forked from instride-ch/pimcore-data-definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstaller.php
More file actions
42 lines (36 loc) · 1.31 KB
/
Copy pathInstaller.php
File metadata and controls
42 lines (36 loc) · 1.31 KB
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
<?php
/**
* Data Definitions.
*
* LICENSE
*
* This source file is subject to the GNU General Public License version 3 (GPLv3)
* For the full copyright and license information, please view the LICENSE.md and gpl-3.0.txt
* files that are distributed with this source code.
*
* @copyright Copyright (c) 2016-2019 w-vision AG (https://www.w-vision.ch)
* @license https://github.com/w-vision/DataDefinitions/blob/master/gpl-3.0.txt GNU General Public License version 3 (GPLv3)
*/
declare(strict_types=1);
namespace Wvision\Bundle\DataDefinitionsBundle;
use Pimcore;
use Pimcore\Extension\Bundle\Installer\SettingsStoreAwareInstaller;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArrayInput;
class Installer extends SettingsStoreAwareInstaller
{
public function install(): void
{
$kernel = Pimcore::getKernel();
$application = new Pimcore\Console\Application($kernel);
$application->setAutoExit(false);
$options = ['command' => 'coreshop:resources:install'];
$options = array_merge($options, ['--no-interaction' => true, '--application-name data_definitions']);
$application->run(new ArrayInput($options));
parent::install();
}
public function uninstall(): void
{
parent::uninstall();
}
}