fix(wyatt_cd): make getIt initializable
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
parent
1492745e54
commit
995e122c1b
@ -14,10 +14,23 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
import 'package:get_it/get_it.dart';
|
||||
import 'package:mason_logger/mason_logger.dart';
|
||||
import 'package:wyatt_continuous_deployment/src/core/injection/injectable.dart';
|
||||
|
||||
export 'domain/domain.dart';
|
||||
|
||||
abstract class WyattContinuousDeployment {
|
||||
/// The logger used by the package
|
||||
static Logger logger = Logger();
|
||||
|
||||
/// The service locator used by the package
|
||||
static GetIt getIt = GetIt.instance;
|
||||
|
||||
/// Configure the dependencies
|
||||
/// This method should be called before WyattContinuousDeployment.getIt
|
||||
/// to ensure that all dependencies are registered
|
||||
static Future<void> configureDependencies() async {
|
||||
await Injectable.configureDependencies();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user