Various fixes to extension generator/stub

This commit is contained in:
Toby Zerner 2015-07-23 20:24:28 +09:30
parent ae3f7dee8b
commit ed5733ed41
3 changed files with 2 additions and 4 deletions

View File

@ -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,

View File

@ -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
});

View File

@ -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