mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-24 05:25:19 +00:00
refactored code
This commit is contained in:
1
AUTHORS.md
Normal file
1
AUTHORS.md
Normal file
@@ -0,0 +1 @@
|
||||
Sergey Penkovsky <sergey.penkovsky@gmail.com>
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:cherrypick/cherrypick.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:cherrypick/scope.dart';
|
||||
import 'package:cherrypick/module.dart';
|
||||
|
||||
class AppModule extends Module {
|
||||
@override
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
name: example
|
||||
version: 1.0.0
|
||||
author: "Sergey Penkovsky <sergey.penkovsky@gmail.com>"
|
||||
homepage: localhost
|
||||
publish_to: none
|
||||
|
||||
|
||||
@@ -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';
|
||||
@@ -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);
|
||||
@@ -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;
|
||||
|
||||
@@ -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].
|
||||
@@ -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);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'package:cherrypick/binding.dart';
|
||||
import 'package:cherrypick/src/binding.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'package:cherrypick/module.dart';
|
||||
import 'package:cherrypick/scope.dart';
|
||||
import 'package:cherrypick/src/module.dart';
|
||||
import 'package:cherrypick/src/scope.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
Reference in New Issue
Block a user