Skip to content

Commit

Permalink
added plugin install
Browse files Browse the repository at this point in the history
  • Loading branch information
jeyroik committed May 20, 2020
1 parent 288e583 commit 8e09f77
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extas.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
{
"class": "extas\\components\\plugins\\repositories\\PluginFieldSelfAlias",
"stage": "extas.conditions.create.before"
},
{
"class": "extas\\components\\plugins\\PluginInstallConditions",
"stage": "extas.install"
}
],
"conditions": [
Expand Down
20 changes: 20 additions & 0 deletions src/components/plugins/PluginInstallConditions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
namespace extas\components\plugins;

use extas\components\conditions\Condition;
use extas\interfaces\conditions\IConditionRepository;

/**
* Class PluginInstallConditions
*
* @package extas\components\plugins
* @author jeyroik@gmail.com
*/
class PluginInstallConditions extends PluginInstallDefault
{
protected string $selfSection = 'conditions';
protected string $selfName = 'condition';
protected string $selfRepositoryClass = IConditionRepository::class;
protected string $selfUID = Condition::FIELD__NAME;
protected string $selfItemClass = Condition::class;
}

0 comments on commit 8e09f77

Please sign in to comment.