Remove conditionals around BlockTemplatesController class (https://github.com/woocommerce/woocommerce-blocks/pull/5128)

This commit is contained in:
Tom Cafferkey 2021-11-11 13:48:24 +00:00 committed by GitHub
parent 6aeac39f17
commit ac317c70eb
1 changed files with 7 additions and 11 deletions

View File

@ -102,9 +102,7 @@ class Bootstrap {
$this->container->get( RestApi::class );
$this->container->get( GoogleAnalytics::class );
$this->container->get( BlockTypesController::class );
if ( $this->package->feature()->is_experimental_build() ) {
$this->container->get( BlockTemplatesController::class );
}
$this->container->get( BlockTemplatesController::class );
if ( $this->package->feature()->is_feature_plugin_build() ) {
$this->container->get( PaymentsApi::class );
}
@ -231,14 +229,12 @@ class Bootstrap {
return new BlockTypesController( $asset_api, $asset_data_registry );
}
);
if ( $this->package->feature()->is_experimental_build() ) {
$this->container->register(
BlockTemplatesController::class,
function ( Container $container ) {
return new BlockTemplatesController();
}
);
}
$this->container->register(
BlockTemplatesController::class,
function ( Container $container ) {
return new BlockTemplatesController();
}
);
$this->container->register(
DraftOrders::class,
function( Container $container ) {