mirror of
https://github.com/flarum/framework.git
synced 2025-01-07 19:13:37 +08:00
Various fixes to extension generator/stub
This commit is contained in:
parent
ae3f7dee8b
commit
ed5733ed41
|
@ -73,8 +73,6 @@ class GenerateExtensionCommand extends Command
|
||||||
|
|
||||||
$this->copyStub($dir, $replacements);
|
$this->copyStub($dir, $replacements);
|
||||||
|
|
||||||
rename($dir.'/src/ServiceProvider.php', $dir.'/src/'.ucfirst($package).'ServiceProvider.php');
|
|
||||||
|
|
||||||
$manifest = [
|
$manifest = [
|
||||||
'name' => $name,
|
'name' => $name,
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { extend } from 'flarum/extend';
|
import { extend } from 'flarum/extend';
|
||||||
import app from 'flarum/app';
|
import app from 'flarum/app';
|
||||||
|
|
||||||
app.initializers.add('{name}', function() {
|
app.initializers.add('{{name}}', function() {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php namespace {{namespace}};
|
<?php namespace {{namespace}};
|
||||||
|
|
||||||
use Flarum\Support\Extension;
|
use Flarum\Support\Extension as BaseExtension;
|
||||||
use Illuminate\Events\Dispatcher;
|
use Illuminate\Events\Dispatcher;
|
||||||
|
|
||||||
class Extension extends BaseExtension
|
class Extension extends BaseExtension
|
||||||
|
|
Loading…
Reference in New Issue
Block a user