Use mirrors reflector in prod by default

This commit is contained in:
Tobe O 2019-04-18 12:06:43 -04:00
parent 7773303a07
commit a7d6a8cf76

View file

@ -1,4 +1,5 @@
import 'package:angel/angel.dart';
import 'package:angel_container/mirrors.dart';
import 'package:angel_production/angel_production.dart';
// NOTE: By default, the Runner class does not use the `MirrorsReflector`, or any
@ -24,4 +25,6 @@ import 'package:angel_production/angel_production.dart';
// so in the meantime, visit the Angel chat for further questions:
//
// https://gitter.im/angel_dart/discussion
main(List<String> args) => Runner('{{angel}}', configureServer).run(args);
main(List<String> args) =>
Runner('{{angel}}', configureServer, reflector: MirrorsReflector())
.run(args);