|
|
@ -34,8 +34,8 @@ $app->instance('config', $config = new \Illuminate\Config\Repository([ |
|
|
|
'port' => 25, |
|
|
|
'port' => 25, |
|
|
|
'from' => ['address' => 'noreply@flarum.org', 'name' => 'Flarum Demo Forum'], |
|
|
|
'from' => ['address' => 'noreply@flarum.org', 'name' => 'Flarum Demo Forum'], |
|
|
|
'encryption' => 'tls', |
|
|
|
'encryption' => 'tls', |
|
|
|
'username' => '3041435124c4c166c', |
|
|
|
'username' => '', |
|
|
|
'password' => 'a6949720835285', |
|
|
|
'password' => '', |
|
|
|
'sendmail' => '/usr/sbin/sendmail -bs', |
|
|
|
'sendmail' => '/usr/sbin/sendmail -bs', |
|
|
|
'pretend' => false, |
|
|
|
'pretend' => false, |
|
|
|
], |
|
|
|
], |
|
|
@ -87,25 +87,23 @@ $app->alias('cache', 'Illuminate\Contracts\Cache\Repository'); |
|
|
|
|
|
|
|
|
|
|
|
// RegisterProviders |
|
|
|
// RegisterProviders |
|
|
|
$serviceProviders = [ |
|
|
|
$serviceProviders = [ |
|
|
|
|
|
|
|
'Flarum\Core\DatabaseServiceProvider', |
|
|
|
|
|
|
|
'Flarum\Core\Settings\SettingsServiceProvider', |
|
|
|
|
|
|
|
'Flarum\Locale\LocaleServiceProvider', |
|
|
|
|
|
|
|
|
|
|
|
'Illuminate\Bus\BusServiceProvider', |
|
|
|
'Illuminate\Bus\BusServiceProvider', |
|
|
|
'Illuminate\Filesystem\FilesystemServiceProvider', |
|
|
|
'Illuminate\Filesystem\FilesystemServiceProvider', |
|
|
|
'Illuminate\Hashing\HashServiceProvider', |
|
|
|
'Illuminate\Hashing\HashServiceProvider', |
|
|
|
'Illuminate\Events\EventServiceProvider', |
|
|
|
|
|
|
|
'Illuminate\Mail\MailServiceProvider', |
|
|
|
'Illuminate\Mail\MailServiceProvider', |
|
|
|
'Illuminate\Validation\ValidationServiceProvider', |
|
|
|
|
|
|
|
'Illuminate\View\ViewServiceProvider', |
|
|
|
'Illuminate\View\ViewServiceProvider', |
|
|
|
|
|
|
|
'Illuminate\Events\EventServiceProvider', |
|
|
|
'Flarum\Core\DatabaseServiceProvider', |
|
|
|
'Illuminate\Validation\ValidationServiceProvider', |
|
|
|
|
|
|
|
|
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
if (Core::isInstalled()) { |
|
|
|
if (Core::isInstalled()) { |
|
|
|
$serviceProviders[] = 'Flarum\Core\Settings\SettingsServiceProvider'; |
|
|
|
|
|
|
|
$serviceProviders[] = 'Flarum\Locale\LocaleServiceProvider'; |
|
|
|
|
|
|
|
$serviceProviders[] = 'Flarum\Support\ExtensionsServiceProvider'; |
|
|
|
|
|
|
|
$serviceProviders[] = 'Flarum\Core\CoreServiceProvider'; |
|
|
|
$serviceProviders[] = 'Flarum\Core\CoreServiceProvider'; |
|
|
|
$serviceProviders[] = 'Flarum\Console\ConsoleServiceProvider'; |
|
|
|
$serviceProviders[] = 'Flarum\Console\ConsoleServiceProvider'; |
|
|
|
|
|
|
|
$serviceProviders[] = 'Flarum\Support\ExtensionsServiceProvider'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
foreach ($serviceProviders as $provider) { |
|
|
|
foreach ($serviceProviders as $provider) { |
|
|
|