Browse Source

Change order of service providers

pull/9/head
Toby Zerner 9 years ago
parent
commit
46bd6b6232
  1. 2
      admin.php
  2. 2
      api.php
  3. 18
      flarum/bootstrap.php

2
admin.php

@ -1,8 +1,6 @@
<?php <?php
use Flarum\Core; use Flarum\Core;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Zend\Diactoros\Server; use Zend\Diactoros\Server;
use Zend\Stratigility\MiddlewarePipe; use Zend\Stratigility\MiddlewarePipe;

2
api.php

@ -1,8 +1,6 @@
<?php <?php
use Flarum\Core; use Flarum\Core;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Zend\Diactoros\Server; use Zend\Diactoros\Server;
use Zend\Stratigility\MiddlewarePipe; use Zend\Stratigility\MiddlewarePipe;

18
flarum/bootstrap.php

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

Loading…
Cancel
Save