Fix frontend extender using old container & wrong class

This commit is contained in:
David Sevilla Martín 2018-11-22 08:43:46 -05:00 committed by Franz Liedke
parent 6c2a4a5ff7
commit 1b32c7cc51
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

View File

@ -14,6 +14,7 @@ namespace Flarum\Extend;
use Flarum\Extension\Extension;
use Flarum\Frontend\Assets;
use Flarum\Frontend\Compiler\Source\SourceCollector;
use Flarum\Frontend\Frontend as ActualFrontend;
use Flarum\Frontend\RecompileFrontendAssets;
use Flarum\Http\RouteHandlerFactory;
use Illuminate\Contracts\Container\Container;
@ -139,8 +140,8 @@ class Frontend implements ExtenderInterface
}
$container->resolving(
"flarum.$this->frontend.frontend",
function (Frontend $frontend, Container $container) {
"flarum.frontend.$this->frontend",
function (ActualFrontend $frontend, Container $container) {
foreach ($this->content as $content) {
if (is_string($content)) {
$content = $container->make($content);