Skip to content

Commit

Permalink
Remove conditionals around BlockTemplatesController class (woocommerc…
Browse files Browse the repository at this point in the history
  • Loading branch information
tjcafferkey authored and jonny-bull committed Dec 14, 2021
1 parent 5f9cb49 commit 83c0d26
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/Domain/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ function() {
$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 );
}
Expand Down Expand Up @@ -231,14 +229,12 @@ function ( Container $container ) {
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 ) {
Expand Down

0 comments on commit 83c0d26

Please sign in to comment.