Remove conditionals around BlockTemplatesController class (https://github.com/woocommerce/woocommerce-blocks/pull/5128)
This commit is contained in:
parent
6aeac39f17
commit
ac317c70eb
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue