Skip to content

Commit

Permalink
default category for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
loveorigami committed Feb 5, 2017
1 parent 517dc73 commit e409f51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/repositories/EventDbRepositoryMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class EventDbRepositoryMap
{
public $id;
public $app_id;
public $category_id;
public $trigger_class;
public $trigger_event;
public $handler_class;
Expand Down
2 changes: 2 additions & 0 deletions src/repositories/EventDirRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace lo\plugins\repositories;

use lo\plugins\BasePlugin;
use lo\plugins\models\Category;

class EventDirRepository extends EventRepository
{
Expand All @@ -18,6 +19,7 @@ public function populate($pluginClass)
$handlerMethod = is_array($handler) ? $handler[0] : $handler;
$this->_data[] = [
'app_id' => $this->checkApp($pluginClass),
'category_id' => Category::CAT_PLUGINS,
'trigger_class' => $className,
'trigger_event' => $eventName,
'handler_class' => $pluginClass,
Expand Down

0 comments on commit e409f51

Please sign in to comment.