| Index: sdk/lib/_internal/pub/lib/src/barback/barback_server.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/barback/barback_server.dart b/sdk/lib/_internal/pub/lib/src/barback/barback_server.dart
|
| index 954658b600eb797c3360b84674d77538fd9b4ca5..3ea060de3baaee2078306d5684e39298620ecf38 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/barback/barback_server.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/barback/barback_server.dart
|
| @@ -16,7 +16,7 @@ import '../barback.dart';
|
| import '../log.dart' as log;
|
| import '../utils.dart';
|
| import 'base_server.dart';
|
| -import 'build_environment.dart';
|
| +import 'asset_environment.dart';
|
|
|
| /// Callback for determining if an asset with [id] should be served or not.
|
| typedef bool AllowAsset(AssetId id);
|
| @@ -49,7 +49,7 @@ class BarbackServer extends BaseServer<BarbackServerResult> {
|
| ///
|
| /// This server will serve assets from [barback], and use [rootDirectory] as
|
| /// the root directory.
|
| - static Future<BarbackServer> bind(BuildEnvironment environment,
|
| + static Future<BarbackServer> bind(AssetEnvironment environment,
|
| String host, int port, String rootDirectory) {
|
| return Chain.track(HttpServer.bind(host, port)).then((server) {
|
| log.fine('Bound "$rootDirectory" to $host:$port.');
|
| @@ -57,7 +57,7 @@ class BarbackServer extends BaseServer<BarbackServerResult> {
|
| });
|
| }
|
|
|
| - BarbackServer._(BuildEnvironment environment, HttpServer server,
|
| + BarbackServer._(AssetEnvironment environment, HttpServer server,
|
| this.rootDirectory)
|
| : super(environment, server);
|
|
|
|
|