default args
This commit is contained in:
parent
34224504e2
commit
feb489949a
3 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
# 1.0.0-alpha.12
|
||||||
|
* `StaticReflector` now defaults to empty arguments.
|
||||||
|
|
||||||
|
# 1.0.0-alpha.11
|
||||||
|
* Added `StaticReflector`.
|
||||||
|
|
||||||
# 1.0.0-alpha.10
|
# 1.0.0-alpha.10
|
||||||
* Added `Container.registerLazySingleton<T>`.
|
* Added `Container.registerLazySingleton<T>`.
|
||||||
* Added named singleton support.
|
* Added named singleton support.
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import 'package:angel_container/angel_container.dart';
|
import 'package:angel_container/angel_container.dart';
|
||||||
import 'package:meta/meta.dart';
|
|
||||||
|
|
||||||
/// A [Reflector] implementation that performs simple [Map] lookups.
|
/// A [Reflector] implementation that performs simple [Map] lookups.
|
||||||
///
|
///
|
||||||
|
@ -11,10 +10,10 @@ class StaticReflector implements Reflector {
|
||||||
final Map<Object, ReflectedInstance> instances;
|
final Map<Object, ReflectedInstance> instances;
|
||||||
|
|
||||||
const StaticReflector(
|
const StaticReflector(
|
||||||
{@required this.names,
|
{this.names: const {},
|
||||||
@required this.types,
|
this.types: const {},
|
||||||
@required this.functions,
|
this.functions: const {},
|
||||||
@required this.instances});
|
this.instances: const {}});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String getName(Symbol symbol) {
|
String getName(Symbol symbol) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel_container
|
name: angel_container
|
||||||
version: 1.0.0-alpha.11
|
version: 1.0.0-alpha.12
|
||||||
author: Tobe O <thosakwe@gmail.com>
|
author: Tobe O <thosakwe@gmail.com>
|
||||||
description: "A better IoC container and dependency injector for Angel, ultimately allowing Angel to be used without dart:mirrors."
|
description: "A better IoC container and dependency injector for Angel, ultimately allowing Angel to be used without dart:mirrors."
|
||||||
homepage: https://github.com/angel-dart/container.git
|
homepage: https://github.com/angel-dart/container.git
|
||||||
|
|
Loading…
Reference in a new issue