mirror of
https://github.com/flarum/core.git
synced 2025-10-13 16:05:05 +02:00
Add console configuration event (#1349)
* Add console configuration event * Fix comment formatting
This commit is contained in:
committed by
Toby Zerner
parent
419adb748b
commit
636e965873
@@ -11,6 +11,7 @@
|
||||
|
||||
namespace Flarum\Console;
|
||||
|
||||
use Flarum\Console\Event\Configuring;
|
||||
use Flarum\Database\Console\GenerateMigrationCommand;
|
||||
use Flarum\Database\Console\MigrateCommand;
|
||||
use Flarum\Foundation\Application;
|
||||
@@ -19,6 +20,7 @@ use Flarum\Foundation\Console\InfoCommand;
|
||||
use Flarum\Foundation\Site;
|
||||
use Flarum\Install\Console\InstallCommand;
|
||||
use Flarum\Install\InstallServiceProvider;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Symfony\Component\Console\Application as ConsoleApplication;
|
||||
|
||||
class Server
|
||||
@@ -73,6 +75,9 @@ class Server
|
||||
));
|
||||
}
|
||||
|
||||
$events = $this->app->make(Dispatcher::class);
|
||||
$events->fire(new Configuring($this->app, $console));
|
||||
|
||||
return $console;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user