mirror of
https://github.com/flarum/core.git
synced 2025-07-23 09:41:26 +02:00
Various fixes to extension generator/stub
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user