mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 14: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);
|
||||
|
||||
rename($dir.'/src/ServiceProvider.php', $dir.'/src/'.ucfirst($package).'ServiceProvider.php');
|
||||
|
||||
$manifest = [
|
||||
'name' => $name,
|
||||
'title' => $title,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { extend } from 'flarum/extend';
|
||||
import app from 'flarum/app';
|
||||
|
||||
app.initializers.add('{name}', function() {
|
||||
app.initializers.add('{{name}}', function() {
|
||||
// TODO
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php namespace {{namespace}};
|
||||
|
||||
use Flarum\Support\Extension;
|
||||
use Flarum\Support\Extension as BaseExtension;
|
||||
use Illuminate\Events\Dispatcher;
|
||||
|
||||
class Extension extends BaseExtension
|
||||
|
|
Loading…
Reference in New Issue
Block a user