Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 2cbee40

Browse files
authored
Rename BlockTemplatesCompatibility class to ArchiveProductTemplatesCompatibility (#8579)
1 parent b952b50 commit 2cbee40

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/Domain/Bootstrap.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
use Automattic\WooCommerce\StoreApi\StoreApi;
3030
use Automattic\WooCommerce\Blocks\Shipping\ShippingController;
3131
use Automattic\WooCommerce\Blocks\Templates\SingleProductTemplateCompatibility;
32-
use Automattic\WooCommerce\Blocks\Templates\BlockTemplatesCompatibility;
32+
use Automattic\WooCommerce\Blocks\Templates\ArchiveProductTemplatesCompatibility;
3333

3434
/**
3535
* Takes care of bootstrapping the plugin.
@@ -131,7 +131,7 @@ function() {
131131
$this->container->get( ProductSearchResultsTemplate::class );
132132
$this->container->get( ProductAttributeTemplate::class );
133133
$this->container->get( ClassicTemplatesCompatibility::class );
134-
$this->container->get( BlockTemplatesCompatibility::class )->init();
134+
$this->container->get( ArchiveProductTemplatesCompatibility::class )->init();
135135
$this->container->get( SingleProductTemplateCompatibility::class )->init();
136136
$this->container->get( BlockPatterns::class );
137137
$this->container->get( PaymentsApi::class );
@@ -279,9 +279,9 @@ function ( Container $container ) {
279279
}
280280
);
281281
$this->container->register(
282-
BlockTemplatesCompatibility::class,
282+
ArchiveProductTemplatesCompatibility::class,
283283
function () {
284-
return new BlockTemplatesCompatibility();
284+
return new ArchiveProductTemplatesCompatibility();
285285
}
286286
);
287287

src/Templates/AbstractTemplateCompatibility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace Automattic\WooCommerce\Blocks\Templates;
33

44
/**
5-
* BlockTemplatesCompatibility class.
5+
* AbstractTemplateCompatibility class.
66
*
77
* To bridge the gap on compatibility with PHP hooks and blockified templates.
88
*

src/Templates/BlockTemplatesCompatibility.php renamed to src/Templates/ArchiveProductTemplatesCompatibility.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
namespace Automattic\WooCommerce\Blocks\Templates;
33

44
/**
5-
* BlockTemplatesCompatibility class.
5+
* ArchiveProductTemplatesCompatibility class.
66
*
7-
* To bridge the gap on compatibility with PHP hooks and blockified templates.
7+
* To bridge the gap on compatibility with PHP hooks and Product Archive blockified templates.
88
*
99
* @internal
1010
*/
11-
class BlockTemplatesCompatibility extends AbstractTemplateCompatibility {
11+
class ArchiveProductTemplatesCompatibility extends AbstractTemplateCompatibility {
1212

1313
/**
1414
* The custom ID of the loop item block as the replacement of the core/null block.

0 commit comments

Comments
 (0)