Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
liufei-ereach committed Apr 29, 2024
1 parent 06253c3 commit 6243100
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/Extend/StoreExtend.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

namespace Mattoid\Store\Extend;

use Flarum\Extend\ExtenderInterface;
use Flarum\Extend\LifecycleInterface;
use Flarum\Extension\Extension;
use Illuminate\Contracts\Container\Container;

class StoreExtend implements ExtenderInterface, LifecycleInterface
{

protected $goodList = [];

public function addStoreGoods(string $key, $callback): self
{
app('log')->info($key);
$this->goodList[$key] = $callback;
return $this;
}

public function extend(Container $container, Extension $extension = null)
{
app('log')->info("extend");
}


public function onEnable(Container $container, Extension $extension)
{
app('log')->info("onEnable");
}

public function onDisable(Container $container, Extension $extension)
{
app('log')->info("onDisable");
}
}

0 comments on commit 6243100

Please sign in to comment.