refactored code

This commit is contained in:
Sergey Penkovsky
2021-10-20 09:15:51 +03:00
parent 4cb210d0c2
commit c49c9012ac
11 changed files with 17 additions and 21 deletions

View File

@@ -11,9 +11,9 @@
/// limitations under the License.
///
library dart_di;
library cherrypick;
export 'package:cherrypick/scope.dart';
export 'package:cherrypick/module.dart';
export 'package:cherrypick/binding.dart';
export 'package:cherrypick/di.dart';
export 'package:cherrypick/src/binding.dart';
export 'package:cherrypick/src/helper.dart';
export 'package:cherrypick/src/module.dart';
export 'package:cherrypick/src/scope.dart';

View File

@@ -10,8 +10,7 @@
/// See the License for the specific language governing permissions and
/// limitations under the License.
///
import 'package:cherrypick/scope.dart';
import 'package:cherrypick/src/scope.dart';
abstract class Factory<T> {
T createInstance(Scope scope);

View File

@@ -10,8 +10,7 @@
/// See the License for the specific language governing permissions and
/// limitations under the License.
///
import 'package:cherrypick/scope.dart';
import 'package:cherrypick/src/scope.dart';
Scope? _rootScope;

View File

@@ -10,11 +10,10 @@
/// See the License for the specific language governing permissions and
/// limitations under the License.
///
import 'dart:collection';
import 'package:cherrypick/binding.dart';
import 'package:cherrypick/scope.dart';
import 'package:cherrypick/src/binding.dart';
import 'package:cherrypick/src/scope.dart';
/// RU: Класс Module является основой для пользовательских модулей.
/// Этот класс нужен для инициализации [Scope].

View File

@@ -10,11 +10,10 @@
/// See the License for the specific language governing permissions and
/// limitations under the License.
///
import 'dart:collection';
import 'package:cherrypick/binding.dart';
import 'package:cherrypick/module.dart';
import 'package:cherrypick/src/binding.dart';
import 'package:cherrypick/src/module.dart';
Scope openRootScope() => Scope(null);