Browse Source

Merge branch 'evented-api'

pull/9/head
Toby Zerner 9 years ago
parent
commit
c8122c37f7
  1. 2
      api.php
  2. 2
      index.php
  3. 9
      system/bootstrap.php
  4. 2
      system/core

2
api.php

@ -10,9 +10,7 @@ use Zend\Stratigility\MiddlewarePipe;
$app = require __DIR__.'/system/bootstrap.php';
// Set up everything we need for the API
$app->instance('type', 'api');
$app->register('Flarum\Api\ApiServiceProvider');
$app->register('Flarum\Support\Extensions\ExtensionsServiceProvider');
// Build a middleware pipeline for the API
$api = new MiddlewarePipe();

2
index.php

@ -10,9 +10,7 @@ use Zend\Stratigility\MiddlewarePipe;
$app = require __DIR__.'/system/bootstrap.php';
// Set up everything we need for the frontend
$app->instance('type', 'forum');
$app->register('Flarum\Forum\ForumServiceProvider');
$app->register('Flarum\Support\Extensions\ExtensionsServiceProvider');
// Build a middleware pipeline for Flarum
$flarum = new MiddlewarePipe();

9
system/bootstrap.php

@ -138,9 +138,12 @@ $serviceProviders = [
];
if (Core::isInstalled()) {
$serviceProviders[] = 'Flarum\Core\CoreServiceProvider';
$serviceProviders[] = 'Flarum\Core\DatabaseServiceProvider';
$serviceProviders[] = 'Flarum\Console\ConsoleServiceProvider';
$serviceProviders[] = 'Flarum\Core\DatabaseServiceProvider';
$serviceProviders[] = 'Flarum\Core\Settings\SettingsServiceProvider';
$serviceProviders[] = 'Flarum\Support\ExtensionsServiceProvider';
$serviceProviders[] = 'Flarum\Core\CoreServiceProvider';
$serviceProviders[] = 'Flarum\Locale\LocaleServiceProvider';
$serviceProviders[] = 'Flarum\Console\ConsoleServiceProvider';
}
foreach ($serviceProviders as $provider) {

2
system/core

@ -1 +1 @@
Subproject commit 22f91bb7e43ded9876a3749c56f23da0035711b9
Subproject commit 0cb3378658b4a6ff3b4a8d5a06378ae8b6c5b87a
Loading…
Cancel
Save