Skip to content
Permalink
Browse files

reorg: Renamed IOCContainer (m4d_core) to Container - breaks Dart's d…

…ependency-management-system
  • Loading branch information...
MikeMitterer committed Dec 19, 2018
1 parent 94d118f commit c1d85a346d61ac588c7c78ba4da8d22ac4e6695f
@@ -83,7 +83,7 @@ class MaterialFormComponent extends MdlComponent {

StreamController<FormChangedEvent> _onChange;

MaterialFormComponent.fromElement(final dom.HtmlElement element,final ioc.IOCContainer iocContainer)
MaterialFormComponent.fromElement(final dom.HtmlElement element,final ioc.Container iocContainer)
: super(element,iocContainer) {

_init();
@@ -257,7 +257,7 @@ class MaterialFormComponent extends MdlComponent {
void registerMaterialFormComponent() {
final MdlConfig config = new MdlWidgetConfig<MaterialFormComponent>(
_MaterialFormComponentConstant.WIDGET_SELECTOR,
(final dom.HtmlElement element,final ioc.IOCContainer iocContainer)
(final dom.HtmlElement element,final ioc.Container iocContainer)
=> new MaterialFormComponent.fromElement(element,iocContainer)
);

@@ -42,7 +42,7 @@ void registerMdlFormComponents() {
registerMaterialFormComponent();
}

class FormModule extends ioc.IOCModule {
class FormModule extends ioc.Module {

@override
configure() {
@@ -53,7 +53,7 @@ class FormModule extends ioc.IOCModule {
}

@override
List<ioc.IOCModule> get dependsOn => [
List<ioc.Module> get dependsOn => [
CoreComponentsModule(),
TranslationModule(),
DirectivesModule()
@@ -15,7 +15,7 @@ dependencies:

# meta: ^1.1.0

m4d_core: '>=0.1.0 <1.0.0'
m4d_core: '>=0.2.0 <1.0.0'
# path: /Volumes/Daten/DevLocal/DevDart/m4d/m4d_core

m4d_components: '>=0.1.0 <1.0.0'
@@ -15,7 +15,7 @@ dependencies:
m4d_components: '>=0.1.0 <1.0.0'
# path: /Volumes/Daten/DevLocal/DevDart/m4d/m4d_components

m4d_dialog: '>=0.1.0 <1.0.0'
m4d_dialog: '>=0.2.1 <1.0.0'
# path: /Volumes/Daten/DevLocal/DevDart/m4d/m4d_dialog

dev_dependencies:
@@ -32,7 +32,7 @@ class TimeFrameDialog extends MaterialDialog {
/// den Dialog beenden und kehrt zu seinem vorhergehenden Login zurück
/// [undoPossible] wird eingeschaltet wenn der User eingeloggt ist
TimeFrameDialog({final bool undoPossible: false })
: _store = ioc.IOCContainer().resolve(modelService.SimpleValueStore).as<SimpleValueStore>(),
: _store = ioc.Container().resolve(modelService.SimpleValueStore).as<SimpleValueStore>(),
super(new DialogConfig(
closeOnBackDropClick: undoPossible,
acceptEscToClose: undoPossible
@@ -15,7 +15,7 @@ dependencies:
m4d_components: '>=0.1.0 <1.0.0'
# path: /Volumes/Daten/DevLocal/DevDart/m4d/m4d_components

m4d_dialog: '>=0.1.0 <1.0.0'
m4d_dialog: '>=0.2.1 <1.0.0'
# path: /Volumes/Daten/DevLocal/DevDart/m4d/m4d_dialog

dev_dependencies:
@@ -5,7 +5,6 @@ import 'package:console_log_handler/console_log_handler.dart';

// For Date- and TimePicker
import 'package:l10n/l10n.dart';
import 'package:intl/intl.dart';
import 'package:intl/intl_browser.dart';
import 'package:m4d_form_sample/_l10n/messages_all.dart';

@@ -68,7 +67,7 @@ main() async {
(dom.querySelector("head") as dom.HeadElement).lang = locale;

// Initialize M4D
ioc.IOCContainer.bindModules([
ioc.Container.bindModules([
DialogModule(), FormModule(), CoreComponentsModule()
]).bind(coreService.Application).to(Application());

0 comments on commit c1d85a3

Please sign in to comment.
You can’t perform that action at this time.