Skip to content

Commit

Permalink
ConsoleHelper::prepareWebEnvironment must add assetProvider #397
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Sep 4, 2017
1 parent 43367b2 commit b4db414
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Core/Console/ConsoleHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Psr\Http\Message\ServerRequestInterface as Request;
use Windwalker\Console\Console;
use Windwalker\Core\Application\WebApplication;
use Windwalker\Core\Asset\AssetProvider;
use Windwalker\Core\Event\EventDispatcher;
use Windwalker\Core\Ioc;
use Windwalker\Core\Package\PackageResolver;
Expand Down Expand Up @@ -186,7 +187,8 @@ public static function prepareWebEnvironment($env = 'web', $url = '', $script =

// Register providers
$container->registerServiceProvider($container->newInstance(RouterProvider::class))
->registerServiceProvider($container->newInstance(RendererProvider::class));
->registerServiceProvider($container->newInstance(RendererProvider::class))
->registerServiceProvider($container->newInstance(AssetProvider::class));

// Prepare routers
$router = $container->get('router');
Expand Down

0 comments on commit b4db414

Please sign in to comment.