2
2
3
3
namespace Fidum \LaravelTranslationLinter ;
4
4
5
+ use Fidum \LaravelTranslationLinter \Collections \ResultObjectCollection ;
5
6
use Fidum \LaravelTranslationLinter \Collections \UnusedFieldCollection ;
6
7
use Fidum \LaravelTranslationLinter \Collections \UnusedFilterCollection ;
7
- use Fidum \LaravelTranslationLinter \Collections \UnusedResultCollection ;
8
8
use Fidum \LaravelTranslationLinter \Commands \UnusedCommand ;
9
+ use Fidum \LaravelTranslationLinter \Contracts \Collections \ResultObjectCollection as ResultObjectCollectionContract ;
9
10
use Fidum \LaravelTranslationLinter \Contracts \Collections \UnusedFieldCollection as UnusedFieldCollectionContract ;
10
11
use Fidum \LaravelTranslationLinter \Contracts \Collections \UnusedFilterCollection as UnusedFilterCollectionContract ;
11
- use Fidum \LaravelTranslationLinter \Contracts \Collections \UnusedResultCollection as UnusedResultCollectionContract ;
12
12
use Fidum \LaravelTranslationLinter \Contracts \Finders \ApplicationFileFinder as ApplicationFileFinderContract ;
13
13
use Fidum \LaravelTranslationLinter \Contracts \Finders \LanguageFileFinder as LanguageFileFinderContract ;
14
14
use Fidum \LaravelTranslationLinter \Contracts \Finders \LanguageNamespaceFinder as LanguageNamespaceFinderContract ;
@@ -70,6 +70,8 @@ public function registeringPackage()
70
70
71
71
$ this ->app ->bind (LanguageNamespaceFinderContract::class, LanguageNamespaceFinder::class);
72
72
73
+ $ this ->app ->bind (ResultObjectCollectionContract::class, ResultObjectCollection::class);
74
+
73
75
$ this ->app ->bind (UnusedFieldCollectionContract::class, function (Application $ app ) {
74
76
return UnusedFieldCollection::wrap ($ app ->make ('config ' )->get ('translation-linter.unused.fields ' ));
75
77
});
@@ -78,8 +80,6 @@ public function registeringPackage()
78
80
return UnusedFilterCollection::wrap ($ app ->make ('config ' )->get ('translation-linter.unused.filters ' ));
79
81
});
80
82
81
- $ this ->app ->bind (UnusedResultCollectionContract::class, UnusedResultCollection::class);
82
-
83
83
$ this ->app ->bind (UnusedTranslationLinterContract::class, UnusedTranslationLinter::class);
84
84
85
85
$ this ->app ->when (UnusedTranslationLinter::class)
@@ -97,9 +97,9 @@ public function provides()
97
97
LanguageFileReaderContract::class,
98
98
LanguageFileReaderManager::class,
99
99
LanguageNamespaceFinderContract::class,
100
+ ResultObjectCollectionContract::class,
100
101
UnusedFieldCollectionContract::class,
101
102
UnusedFilterCollectionContract::class,
102
- UnusedResultCollectionContract::class,
103
103
UnusedTranslationLinterContract::class,
104
104
];
105
105
}
0 commit comments